Beispiel #1
0
 /**
  * Construct RST document node.
  *
  * @param ezcDocumentRstToken $token
  * @param array $nodes
  */
 public function __construct(ezcDocumentRstToken $token, array $nodes = array())
 {
     // Perhaps check, that only node of type section and metadata are
     // added.
     parent::__construct($token, self::LITERAL_BLOCK);
     $this->nodes = $nodes;
 }
 /**
  * Construct RST document node
  * 
  * @param ezcDocumentRstToken $token 
  * @param array $name
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token, array $name)
 {
     // Perhaps check, that only node of type section and metadata are
     // added.
     parent::__construct($token, self::DEFINITION_LIST);
     $this->name = $name;
 }
Beispiel #3
0
 /**
  * Construct RST document node
  *
  * @param ezcDocumentRstToken $token
  * @param string $identifier
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token, $identifier)
 {
     // Perhaps check, that only node of type section and metadata are
     // added.
     parent::__construct($token, self::DIRECTIVE);
     $this->identifier = $identifier;
 }
 /**
  * Construct RST document node
  * 
  * @param ezcDocumentRstToken $token 
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token)
 {
     // Perhaps check, that only node of type section and metadata are
     // added.
     parent::__construct($token, self::ENUMERATED_LIST);
 }