Beispiel #1
0
 /**
  * @param Request                            $request           Current kernel request
  * @param RZ\Roadiz\CMS\Controllers\Controller $refereeController Calling controller
  * @param RZ\Roadiz\Core\Entities\Node        $parent            Entry point of NodeTreeWidget, set null if it's root
  * @param RZ\Roadiz\Core\Entities\Translation $translation       NodeTree translation
  */
 public function __construct(Request $request, Controller $refereeController, Node $parent = null, Translation $translation = null)
 {
     parent::__construct($request, $refereeController);
     $this->parentNode = $parent;
     $this->translation = $translation;
     if ($this->translation === null) {
         $this->translation = $this->getController()->getService('defaultTranslation');
     }
     $this->availableTranslations = $this->getController()->getService('em')->getRepository('RZ\\Roadiz\\Core\\Entities\\Translation')->findAll();
 }
 /**
  * @param Symfony\Component\HttpFoundation\Request $request
  * @param RZ\Roadiz\CMS\Controllers\Controller $refereeController
  * @param RZ\Roadiz\Core\Entities\Folder $parent
  */
 public function __construct(Request $request, Controller $refereeController, Folder $parent = null)
 {
     parent::__construct($request, $refereeController);
     $this->parentFolder = $parent;
     $this->getFolderTreeAssignationForParent();
 }