EventIssue::model PHP 메소드

model() 공개 정적인 메소드

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

Usage Example

예제 #1
0
파일: Event.php 프로젝트: openeyes/openeyes
 /**
  * Deletes issues for this event before calling the parent delete method
  * Does not handle the removal of elements and will therefore fail if this has not been handled before being called.
  *
  * @return bool
  *
  * @see parent::delete()
  */
 public function delete()
 {
     // Delete related
     EventIssue::model()->deleteAll('event_id = ?', array($this->id));
     return parent::delete();
 }