Пример #1
0
	/**
	 * Returns the static model of the specified AR class.
	 * @return Lookup the static model class
	 */
	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}
Пример #2
0
 public function beforeDelete()
 {
     if (parent::beforeDelete()) {
         $this->portfolioWorks = array();
         $this->gallery = array();
         $this->workType = array();
         return true;
     }
     return false;
 }
Пример #3
0
	public function beforeSave()
	{
		if (parent::beforeSave()) {
			return true;
		}	
		return false;
	}
Пример #4
0
	public function beforeDelete()
	{
		if (parent::beforeDelete()) {
			$file ='./'.$this->imgPath.$this->image_name;
			if (is_file($file))
				@unlink($file);
			return true;
		}
		return false;
	}