Public Member Functions | |
| ilBMFQName ($name, $namespace= '') | |
| fqn () | |
Data Fields | |
| $name = '' | |
| $ns = '' | |
| $namespace = '' | |
Definition at line 1092 of file class.ilBMFBase.php.
| ilBMFQName::fqn | ( | ) |
Definition at line 1126 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;
}
| ilBMFQName::ilBMFQName | ( | $ | name, | |
| $ | namespace = '' | |||
| ) |
Definition at line 1099 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);
}
}
| ilBMFQName::$name = '' |
Definition at line 1094 of file class.ilBMFBase.php.
Referenced by ilBMFQName().
| ilBMFQName::$namespace = '' |
Definition at line 1096 of file class.ilBMFBase.php.
Referenced by ilBMFQName().
| ilBMFQName::$ns = '' |
Definition at line 1095 of file class.ilBMFBase.php.
1.7.1