Esempio n. 1
0
 /**
  * @param $namespace string Jmenny prostor daneho presenteru
  */
 public function __construct($namespace = '')
 {
     if ($namespace == '') {
         $namespace = 'main';
     }
     parent::__construct($namespace);
 }
Esempio n. 2
0
 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();
     }
 }