Changeset 86
- Timestamp:
- 01/24/07 19:24:15 (2 years ago)
- Files:
-
- trunk/XJConf/definitions/AbstractTagDefinition.php (modified) (3 diffs)
- trunk/XJConf/definitions/TagDefinition.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/definitions/AbstractTagDefinition.php
r85 r86 72 72 public function getType() 73 73 { 74 if ( $this->type != null) {75 if (null != $this->classLoader ) {74 if (null != $this->type) { 75 if (null != $this->classLoader && in_array($this->type, $this->simpleTypes) == false) { 76 76 return $this->classLoader->getType($this->type); 77 77 } … … 80 80 } 81 81 82 if (null != $this->classLoader ) {82 if (null != $this->classLoader && in_array($this->abstractType, $this->simpleTypes) == false) { 83 83 return $this->classLoader->getType($this->abstractType); 84 84 } … … 102 102 103 103 $refClass = new ReflectionClass(get_class($instance)); 104 if (null != $this->classLoader ) {104 if (null != $this->classLoader && in_array($this->abstractType, $this->simpleTypes) == false) { 105 105 $abstractType = $this->classLoader->getType($this->abstractType); 106 106 } else { trunk/XJConf/definitions/TagDefinition.php
r77 r86 92 92 protected $classLoader = null; 93 93 /** 94 * list of simple types where the class loader can not be applied to 95 * 96 * @var array<string> 97 */ 98 protected $simpleTypes = array('boolean', 'bool', 'integer', 'int', 'double', 'float', 'string', 'array'); 99 /** 94 100 * Whether the calls should be made statically or not 95 101 * … … 425 431 } 426 432 427 if (null != $this->classLoader ) {433 if (null != $this->classLoader && in_array($this->type, $this->simpleTypes) == false) { 428 434 $this->classLoader->loadClass($this->type); 429 435 }
