Ejemplo n.º 1
0
 public function __construct()
 {
     $this->page = $this->createPageEntity();
     $this->extendedMainRoute = $this->createMainRoute();
     $this->page->mainRoute = $this->extendedMainRoute->getRoute();
     $this->page->special = $this->getSpecial();
     $this->startup();
 }
Ejemplo n.º 2
0
 protected function startup()
 {
     parent::startup();
     $this->position = time();
     $this->route->setLocalUrl(Strings::webalize(Strings::random()));
     $this->getRoute()->setPublished(TRUE);
 }
Ejemplo n.º 3
0
 protected function startup()
 {
     parent::startup();
     $this->route->published = TRUE;
     $this->setName('');
 }
Ejemplo n.º 4
0
 protected function startup()
 {
     parent::startup();
     $this->categories = new ArrayCollection();
 }
Ejemplo n.º 5
0
 protected function startup()
 {
     parent::startup();
     $this->setName(Strings::random(20));
     $this->route->setPublished(TRUE);
 }
Ejemplo n.º 6
0
 protected function startup()
 {
     parent::startup();
     $this->setName('Cart')->getRoute()->setPublished(TRUE);
 }
Ejemplo n.º 7
0
 /**
  * @return string
  */
 protected function getPresenterName()
 {
     $presenter = explode(':', parent::getPresenterName());
     $presenter[count($presenter) - 2] = 'Route';
     return join(':', $presenter);
 }
Ejemplo n.º 8
0
 protected function startup()
 {
     parent::startup();
     $this->getRoute()->setLocalUrl('feed.xml')->setTitle('Feed')->setPublished(TRUE);
 }
Ejemplo n.º 9
0
 protected function startup()
 {
     parent::startup();
     $this->targetPages = new ArrayCollection();
 }
Ejemplo n.º 10
0
 protected function startup()
 {
     parent::startup();
     $this->roleEntities = new ArrayCollection();
     $this->logins = new ArrayCollection();
     $this->loginProviders = new ArrayCollection();
     $this->routes = new ArrayCollection();
     $this->generateNewSalt();
     $this->created = new \DateTime();
 }