OEModule\OphCiExamination\models\OphCiExamination_Attribute::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphCiExamination_Attribute
return OphCiExamination_Attribute the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Get all the attributes for an element.
  *
  * @param BaseEventTypeElement $element
  * @param int                  $subspecialty_id
  *
  * @return OphCiExamination_Attribute[]
  */
 public function getAttributes($element, $subspecialty_id = null)
 {
     $attributes = models\OphCiExamination_Attribute::model()->findAllByElementAndSubspecialty($element->ElementType->id, $subspecialty_id);
     return $attributes;
 }