コード例 #1
0
    /**
     * {@inheritDoc}
     */
    public function __construct($name, NodeParentInterface $parent = null)
    {
        parent::__construct($name, $parent);

        $this->nullEquivalent = array();
        $this->trueEquivalent = array();
    }
コード例 #2
0
ファイル: ArrayNodeDefinition.php プロジェクト: kingsj/core
 /**
  * {@inheritDoc}
  */
 public function __construct($name, NodeParentInterface $parent = null)
 {
     parent::__construct($name, $parent);
     $this->children = array();
     $this->addDefaults = false;
     $this->allowNewKeys = true;
     $this->atLeastOne = false;
     $this->allowEmptyValue = true;
     $this->performDeepMerging = true;
     $this->nullEquivalent = array();
     $this->trueEquivalent = array();
 }
コード例 #3
0
 public function __construct($name, NodeParentInterface $parent = null)
 {
     parent::__construct($name, $parent);
     $this->children = array('type' => $this->getNodeBuilder()->node('type', 'scalar')->setParent($this)->isRequired());
 }