Lines Matching refs:attributes
14 private $attributes = array(); variable in FileDefinition
21 public function __construct($attributes) { argument
22 $this->attributes = $attributes;
25 public function attributes() { return $this->attributes; } function in FileDefinition
28 if (!isset($this->attributes[$name])) return NULL;
29 return $this->attributes[$name];
43 $attributes = array();
44 foreach ($xml->firstChild->attributes as $attribute)
45 $attributes[$attribute->name] = $attribute->value;
46 $attributes['name'] = $name;
47 if (!isset($attributes['type'])) return NULL;
48 $type = $attributes['type'];
50 return new SourceDefinition($attributes);
52 return new TargetDefinition($attributes);
54 return new CrosslinkDefinition($attributes);
81 public function __construct($attributes) { argument
82 if (!isset($attributes['linkto']))
83 $attributes['linkto'] = "";
85 $linkto = $attributes['linkto'];
93 $attributes['linkto'] = $linkto;
95 parent::__construct($attributes);