Exemple #1
0
 /**
  * Gets the resources for this attribute
  * @return AResource[] the resources that belong to this owner attribute
  */
 public function getResources()
 {
     if ($this->_resources === null) {
         $this->_resources = AResource::model()->findAllByAttributes(array("ownerModel" => get_class($this->owner), "ownerId" => $this->owner->id, "ownerAttribute" => $this->name));
     }
     return $this->_resources;
 }