Public Member Functions | |
| QName ($name, $namespace= '') | |
| fqn () | |
Data Fields | |
| $name = '' | |
| $ns = '' | |
| $namespace = '' | |
Definition at line 1152 of file class.ilBMFBase.php.
| QName::fqn | ( | ) |
Definition at line 1196 of file class.ilBMFBase.php.
{
if ($this->namespace)
{
return '{'.$this->namespace.'}'.$this->name;
}
else
{
if ($this->ns)
{
return $this->ns.':'.$this->name;
}
}
return $this->name;
}
| QName::QName | ( | $ | name, | |
| $ | namespace = '' | |||
| ) |
Definition at line 1159 of file class.ilBMFBase.php.
References $name, and $namespace.
{
if ($name && $name[0] == '{' )
{
preg_match('/\{(.*?)\}(.*)/',$name, $m);
$this->name = $m[2];
$this->namespace = $m[1];
}
else
{
if (strpos($name, ':') != FALSE)
{
$s = split(':',$name);
$s = array_reverse($s);
$this->name = $s[0];
$this->ns = $s[1];
$this->namespace = $namespace;
}
else
{
$this->name = $name;
$this->namespace = $namespace;
}
}
# a little more magic than should be in a qname
$p = strpos($this->name, '[');
if ($p)
{
# XXX need to re-examine this logic later
# chop off []
$this->arraySize = split(',',substr($this->name,$p+1, strlen($this->name)-$p-2));
$this->arrayInfo = substr($this->name, $p);
$this->name = substr($this->name, 0, $p);
}
}
| QName::$name = '' |
Definition at line 1154 of file class.ilBMFBase.php.
Referenced by QName().
| QName::$namespace = '' |
Definition at line 1156 of file class.ilBMFBase.php.
Referenced by QName().
| QName::$ns = '' |
Definition at line 1155 of file class.ilBMFBase.php.
1.7.1