Public Member Functions | |
| ilMetaTechnicalRequirement ($a_type) | |
| Constructor. | |
| setType ($a_type) | |
| set requirement type | |
| getType () | |
| get requirement type | |
| setName ($a_name) | |
| set requirement system/browser name | |
| getName () | |
| get requirement system/browser name | |
| setMinVersion ($a_min_version) | |
| set minimum version | |
| getMinVersion () | |
| get minimum version | |
| setMaxVersion ($a_max_version) | |
| set maximum version | |
| getMaxVersion () | |
| get maximum version | |
| getXML () | |
Data Fields | |
| $ilias | |
| $type | |
| $name | |
| $min_version | |
| $max_version | |
Definition at line 34 of file class.ilMetaTechnicalRequirement.php.
| ilMetaTechnicalRequirement::getMaxVersion | ( | ) |
get maximum version
Definition at line 126 of file class.ilMetaTechnicalRequirement.php.
Referenced by getXML().
{
return $this->max_version;
}
Here is the caller graph for this function:| ilMetaTechnicalRequirement::getMinVersion | ( | ) |
get minimum version
Definition at line 108 of file class.ilMetaTechnicalRequirement.php.
Referenced by getXML().
{
return $this->min_version;
}
Here is the caller graph for this function:| ilMetaTechnicalRequirement::getName | ( | ) |
get requirement system/browser name
Definition at line 90 of file class.ilMetaTechnicalRequirement.php.
{
return $this->name;
}
| ilMetaTechnicalRequirement::getType | ( | ) |
get requirement type
Definition at line 69 of file class.ilMetaTechnicalRequirement.php.
Referenced by getXML().
{
return $this->type;
}
Here is the caller graph for this function:| ilMetaTechnicalRequirement::getXML | ( | ) |
Definition at line 131 of file class.ilMetaTechnicalRequirement.php.
References $xml, getMaxVersion(), getMinVersion(), and getType().
{
$xml = "<Requirement>";
$xml.= "<Type>";
$min = ($this->getMinVersion != "")
? "MinimumVersion=\"".$this->getMinVersion()."\""
: "";
$max = ($this->getMaxVersion != "")
? "MaximumVersion=\"".$this->getMaxVersion()."\""
: "";
switch ($this->getType())
{
case "OperatingSystem":
$xml.= "<OperatingSystem Name=\"".$this->getName()."\" $min $max>";
break;
case "Browser":
$xml.= "<Browser Name=\"".$this->getName()."\" $min $max>";
break;
default:
return false;
}
$xml.= "</Type>";
$xml.= "</Requirement>";
return $xml;
}
Here is the call graph for this function:| ilMetaTechnicalRequirement::ilMetaTechnicalRequirement | ( | $ | a_type | ) |
Constructor.
| string | $a_type OperatingSystem | Browser public |
Definition at line 49 of file class.ilMetaTechnicalRequirement.php.
References $ilias.
{
global $ilias;
$this->type = $a_type;
}
| ilMetaTechnicalRequirement::setMaxVersion | ( | $ | a_max_version | ) |
set maximum version
| string | $a_max_version maximum version |
Definition at line 118 of file class.ilMetaTechnicalRequirement.php.
{
$this->max_version = $a_max_version;
}
| ilMetaTechnicalRequirement::setMinVersion | ( | $ | a_min_version | ) |
set minimum version
| string | $a_min_version minimum version |
Definition at line 100 of file class.ilMetaTechnicalRequirement.php.
{
$this->min_version = $a_min_version;
}
| ilMetaTechnicalRequirement::setName | ( | $ | a_name | ) |
set requirement system/browser name
| string | $a_name (PC-DOS | MS-Windows | MacOS | Unix | Multi-OS | None) for type OperatingSystem (Any | NetscapeCommunicator | MS-InternetExplorer | Opera | Amaya | Mozilla) for type Browser |
Definition at line 82 of file class.ilMetaTechnicalRequirement.php.
{
$this->name = $a_name;
}
| ilMetaTechnicalRequirement::setType | ( | $ | a_type | ) |
set requirement type
| string | $a_type OperatingSystem | Browser |
Definition at line 61 of file class.ilMetaTechnicalRequirement.php.
{
$this->type = $a_type;
}
| ilMetaTechnicalRequirement::$ilias |
Definition at line 36 of file class.ilMetaTechnicalRequirement.php.
Referenced by ilMetaTechnicalRequirement().
| ilMetaTechnicalRequirement::$max_version |
Definition at line 40 of file class.ilMetaTechnicalRequirement.php.
| ilMetaTechnicalRequirement::$min_version |
Definition at line 39 of file class.ilMetaTechnicalRequirement.php.
| ilMetaTechnicalRequirement::$name |
Definition at line 38 of file class.ilMetaTechnicalRequirement.php.
| ilMetaTechnicalRequirement::$type |
Definition at line 37 of file class.ilMetaTechnicalRequirement.php.
1.7.1