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);
     }
 }
Beispiel #2
0
 /**
  * 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);
 }
Beispiel #3
0
 public function __construct(EntityManager $entityManager, Token $token)
 {
     parent::__construct();
     $this->entityManager = $entityManager;
     $this->token = $token;
 }
 public function __construct()
 {
     parent::__construct();
     $this->filesystem = new Filesystem();
 }
Beispiel #5
0
 public function __construct(EntityManager $entityManager)
 {
     parent::__construct();
     $this->entityManager = $entityManager;
 }
Beispiel #6
0
 /**
  * @param \Concrete\Core\Attribute\Type $attributeType
  */
 public function __construct(EntityManager $entityManager)
 {
     parent::__construct();
     $this->entityManager = $entityManager;
     $this->set('controller', $this);
 }