예제 #1
0
 /**
  * Gets the ClassAttribute object associated with this object
  * @return ClassAttribute - a ClassAttribute object
  */
 function getClassAttribute()
 {
     if ($this->classAttribute == null) {
         $classAttributeMapper = new ClassAttributeMapper();
         $this->classAttribute = $classAttributeMapper->get($this->getClassAttributeID());
     }
     return $this->classAttribute;
 }
예제 #2
0
 /**
  * Gets the attributes collection
  */
 function getAttributes()
 {
     if ($this->attributes == null) {
         $classAttributeMapper = new ClassAttributeMapper();
         $this->attributes = $classAttributeMapper->findByClassId($this->id);
     }
     return $this->attributes;
 }