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; } }
public function delete($id) { parent::delete($id); /* ToDo * * Удалить соответствующее разрешении в модуле Users */ }
public function delete($id) { /* ToDo * * Удалить все поля этого типа данных */ parent::delete($id); }
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; } }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Data\\Entities\\DataTemplate'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Events\\Entities\\Action'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Users\\Entities\\UserGroup'); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Settings\\Entities\\Setting'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Router\\Entities\\Route'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Mail\\Entities\\Mail'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Wysiwygs\\Entities\\Wysiwyg'); }
public function __construct() { parent::__construct(); $this->repository = $this->em->getRepository('Blocks\\Entities\\Block'); }