/** * Controller for the Backend Settings views * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object * @param string $submenu the submenu name */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { //check the user permission \Permission::checkAccess(1032, 'static'); parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); }
/** * DefaultController for the DefaultView * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { //check the user permission \Permission::checkAccess(1030, 'static'); parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); $this->crawlerRepository = $this->em->getRepository('Cx\\Core_Modules\\LinkManager\\Model\\Entity\\Crawler'); }
/** * Controller for the Backend Crawler Result views * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object * @param string $submenu the submenu name */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { //check the user permission \Permission::checkAccess(1031, 'static'); parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); $this->linkRepository = $this->em->getRepository('Cx\\Core_Modules\\LinkManager\\Model\\Entity\\Link'); $this->crawlerRepository = $this->em->getRepository('Cx\\Core_Modules\\LinkManager\\Model\\Entity\\Crawler'); //register backend js \JS::registerJS('core_modules/LinkManager/View/Script/LinkManagerBackend.js'); \Env::get('ClassLoader')->loadFile(ASCMS_LIBRARY_PATH . '/SimpleHtmlDom.php'); }
/** * Controller for the Backend Cron jobs views * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object * @param string $submenu the submenu name */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); }
/** * Controller for the Backend Orders views * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); $this->productRepository = $this->em->getRepository('Cx\\Modules\\Pim\\Model\\Entity\\Product'); }
/** * Constructor * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController * @param \Cx\Core\Core\Controller\Cx $cx */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { parent::__construct($systemComponentController, $cx); }
/** * Controller for the Backend subscription views * * @param \Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController the system component controller object * @param \Cx\Core\Core\Controller\Cx $cx the cx object * @param \Cx\Core\Html\Sigma $template the template object * @param string $submenu the submenu name */ public function __construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) { parent::__construct($systemComponentController, $cx); $this->em = $this->cx->getDb()->getEntityManager(); $this->subscriptionRepo = $this->em->getRepository('Cx\\Modules\\Order\\Model\\Entity\\Subscription'); }
/** * Returns the internal name used as identifier for this adapter * @return String Name of this adapter */ public function getName() { return parent::getName(); }