/** * 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; }
/** * Gets the attributes collection */ function getAttributes() { if ($this->attributes == null) { $classAttributeMapper = new ClassAttributeMapper(); $this->attributes = $classAttributeMapper->findByClassId($this->id); } return $this->attributes; }