public function __construct() { parent::__construct(); if ($this->viewPath) { $this->view = new View($this->viewPath); if (preg_match('/Concrete\\\\Package\\\\(.*)\\\\Controller/i', get_class($this), $matches)) { $pkgHandle = uncamelcase($matches[1]); $this->view->setPackageHandle($pkgHandle); } $this->view->setController($this); } }
/** * Instantiates the block controller. * * @param BlockType $obj |Block $obj */ public function __construct($obj = null) { parent::__construct(); if ($obj instanceof BlockType) { $this->identifier = 'BLOCKTYPE_' . $obj->getBlockTypeID(); $this->btHandle = $obj->getBlockTypeHandle(); } else { if ($obj instanceof Block) { $b = $obj; $this->identifier = 'BLOCK_' . $obj->getBlockID(); $this->bID = $b->getBlockID(); $this->btHandle = $obj->getBlockTypeHandle(); $this->btCachedBlockRecord = $obj->getBlockCachedRecord(); $this->setBlockObject($b); $this->load(); } } $this->set('controller', $this); }
public function __construct(EntityManager $entityManager, Token $token) { parent::__construct(); $this->entityManager = $entityManager; $this->token = $token; }
public function __construct() { parent::__construct(); $this->filesystem = new Filesystem(); }
public function __construct(EntityManager $entityManager) { parent::__construct(); $this->entityManager = $entityManager; }
/** * @param \Concrete\Core\Attribute\Type $attributeType */ public function __construct(EntityManager $entityManager) { parent::__construct(); $this->entityManager = $entityManager; $this->set('controller', $this); }