FirmSiteSecretary::model PHP Method

model() public static method

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

Usage Example

 /**
  * Adds direct line phone numbers to jsvars to be used in dropdown select.
  */
 public function loadDirectLines()
 {
     $sfs = FirmSiteSecretary::model()->findAll('firm_id=?', array(Yii::app()->session['selected_firm_id']));
     $vars[] = null;
     foreach ($sfs as $sf) {
         $vars[$sf->site_id] = $sf->direct_line;
     }
     $this->jsVars['correspondence_directlines'] = $vars;
 }
All Usage Examples Of FirmSiteSecretary::model