ElementLetter::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

 /**
  * @param int $event_id
  *
  * @return bool
  */
 public function canUpdate($event_id)
 {
     // FIXME: Correspondence locking is suspended while draft usage is discussed
     return true;
     $letter = ElementLetter::model()->find('event_id=?', array($event_id));
     return $letter->isEditable();
 }
All Usage Examples Of ElementLetter::model