예제 #1
0
파일: Module.php 프로젝트: jfkz/aquarel-cms
 public function __construct($name = null, $load_data = true)
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Modules\\Entities\\Module');
     if (empty($name)) {
         return 'Модуль не найден';
     }
     $this->name = $name;
     $this->group = $this->getGroup();
     if (empty($this->group)) {
         return 'Модуль не найден';
     }
     $this->info = $this->getInfo();
     if ($load_data) {
         $module = $this->find(array('name' => $this->name));
         if (empty($module)) {
             return 'Модуль не найден';
         }
         $this->id = $module->id;
         $this->title = $module->title;
         $this->group = $module->group;
         $this->active = $module->active;
         $this->install = $module->install;
         $this->version = $module->version;
     }
 }
예제 #2
0
파일: Menu.php 프로젝트: jfkz/aquarel-cms
 public function delete($id)
 {
     parent::delete($id);
     /* ToDo
      *
      * Удалить соответствующее разрешении в модуле Users
      */
 }
예제 #3
0
 public function delete($id)
 {
     /* ToDo
      *
      * Удалить все поля этого типа данных
      */
     parent::delete($id);
 }
예제 #4
0
파일: User.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Users\\Entities\\User');
     $login = !empty($_SESSION['user_login']) ? $_SESSION['user_login'] : '';
     if (!empty($login)) {
         $data = $this->repository->findOneBy(array('login' => $login));
         $this->setData($data);
     } else {
         $this->group = 16;
     }
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Data\\Entities\\DataTemplate');
 }
예제 #6
0
파일: Action.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Events\\Entities\\Action');
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Users\\Entities\\UserGroup');
 }
예제 #8
0
파일: Data.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
 }
예제 #9
0
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Settings\\Entities\\Setting');
 }
예제 #10
0
파일: Router.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Router\\Entities\\Route');
 }
예제 #11
0
파일: Mail.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Mail\\Entities\\Mail');
 }
예제 #12
0
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Wysiwygs\\Entities\\Wysiwyg');
 }
예제 #13
0
파일: Block.php 프로젝트: jfkz/aquarel-cms
 public function __construct()
 {
     parent::__construct();
     $this->repository = $this->em->getRepository('Blocks\\Entities\\Block');
 }