Esempio 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();
 }
Esempio n. 2
0
 protected function startup()
 {
     parent::startup();
     $this->position = time();
     $this->route->setLocalUrl(Strings::webalize(Strings::random()));
     $this->getRoute()->setPublished(TRUE);
 }
Esempio n. 3
0
 protected function startup()
 {
     parent::startup();
     $this->route->published = TRUE;
     $this->setName('');
 }
Esempio n. 4
0
 protected function startup()
 {
     parent::startup();
     $this->categories = new ArrayCollection();
 }
Esempio n. 5
0
 protected function startup()
 {
     parent::startup();
     $this->setName(Strings::random(20));
     $this->route->setPublished(TRUE);
 }
Esempio n. 6
0
 protected function startup()
 {
     parent::startup();
     $this->setName('Cart')->getRoute()->setPublished(TRUE);
 }
Esempio n. 7
0
 /**
  * @return string
  */
 protected function getPresenterName()
 {
     $presenter = explode(':', parent::getPresenterName());
     $presenter[count($presenter) - 2] = 'Route';
     return join(':', $presenter);
 }
Esempio n. 8
0
 protected function startup()
 {
     parent::startup();
     $this->getRoute()->setLocalUrl('feed.xml')->setTitle('Feed')->setPublished(TRUE);
 }
Esempio n. 9
0
 protected function startup()
 {
     parent::startup();
     $this->targetPages = new ArrayCollection();
 }
Esempio 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();
 }