Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->emails = '';
     $this->subject = '';
     $this->inputs = new ArrayCollection();
     $this->inputs[] = new InputEntity($this, InputEntity::TYPE_TEXTAREA, 'Text');
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->created = new \DateTime();
     $this->updated = new \DateTime();
     $this->read = new ArrayCollection();
     $this->write = new ArrayCollection();
 }
Exemplo n.º 3
0
 /**
  * @param ExtendedPageEntity $page
  */
 public function __construct(ExtendedPageEntity $page)
 {
     parent::__construct();
     $this->children = new ArrayCollection();
     $this->routes = new ArrayCollection();
     $this->permissions = new ArrayCollection();
     $this->adminPermissions = new ArrayCollection();
     $this->translations = new ArrayCollection();
     $this->created = new \DateTime();
     $this->updated = new \DateTime();
     $this->class = get_class($page);
     $this->dir = new DirEntity();
     $this->dir->setInvisible(TRUE);
     $this->dir->setName(Strings::webalize(get_class($this)) . Strings::random());
 }