ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
QName Class Reference
+ Collaboration diagram for QName:

Public Member Functions

 QName ($name, $namespace= '')
 fqn ()

Data Fields

 $name = ''
 $ns = ''
 $namespace = ''

Detailed Description

Definition at line 1434 of file class.ilBMFBase.php.

Member Function Documentation

QName::fqn ( )

Definition at line 1468 of file class.ilBMFBase.php.

References $name.

{
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);
}
}

Field Documentation

QName::$name = ''

Definition at line 1436 of file class.ilBMFBase.php.

Referenced by fqn(), and 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.


The documentation for this class was generated from the following file: