/** * @param $namespace string Jmenny prostor daneho presenteru */ public function __construct($namespace = '') { if ($namespace == '') { $namespace = 'main'; } parent::__construct($namespace); }
public static function delete(&$model) { $wfModels = Model\Model::model()->findByAttributes(array('model_type_id' => $model->modelTypeId(), 'model_id' => $model->id)); while ($wfModel = $wfModels->fetch()) { $wfModel->delete(); } }