Пример #1
0
 /**
  * Constructs a new site node
  * @param string $type Name of the node type
  * @return null
  */
 public function __construct($type = null)
 {
     if (!$type) {
         $type = PageNodeType::NAME;
     }
     parent::__construct($type);
     $this->defaultInherit = false;
 }
Пример #2
0
 /**
  * Constructs a new site node
  * @return null
  */
 public function __construct()
 {
     parent::__construct(SiteNodeType::NAME);
     $this->defaultInherit = true;
     $this->set(self::PROPERTY_AUTO_PUBLISH, 0, true);
     $this->set(Node::PROPERTY_PUBLISH, 1, true);
     $this->set(Node::PROPERTY_SECURITY, Node::AUTHENTICATION_STATUS_EVERYBODY, true);
     $this->revisions = array();
     $this->widgets = array();
 }
Пример #3
0
 /**
  * Constructs a new site node
  * @return null
  */
 public function __construct()
 {
     parent::__construct(RedirectNodeType::NAME);
     $this->defaultInherit = true;
 }