Public Member Functions | |
| QName ($name, $namespace= '') | |
| fqn () | |
Data Fields | |
| $name = '' | |
| $ns = '' | |
| $namespace = '' | |
Definition at line 1434 of file class.ilBMFBase.php.
| QName::fqn | ( | ) |
Definition at line 1468 of file class.ilBMFBase.php.
{
if ($this->namespace) {
return '{' . $this->namespace . '}' . $this->name;
} elseif ($this->ns) {
return $this->ns . ':' . $this->name;
}
return $this->name;
}
| QName::QName | ( | $ | name, | |
| $ | namespace = '' | |||
| ) |
Definition at line 1440 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];
} elseif (substr_count($name, ':') == 1) {
$s = explode(':', $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) {
// TODO: Need to re-examine this logic later.
// Chop off [].
$this->arraySize = explode(',', substr($this->name, $p + 1, -$p - 2));
$this->arrayInfo = substr($this->name, $p);
$this->name = substr($this->name, 0, $p);
}
}
| QName::$name = '' |
Definition at line 1436 of file class.ilBMFBase.php.
Referenced by QName().
| QName::$namespace = '' |
Definition at line 1438 of file class.ilBMFBase.php.
Referenced by QName().
| QName::$ns = '' |
Definition at line 1437 of file class.ilBMFBase.php.
1.7.1