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