/**
  * 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::NAMED_REFERENCE);
     $this->name = $name;
 }
示例#2
0
 /**
  * Construct RST document node
  * 
  * @param ezcDocumentRstToken $token 
  * @param array $name 
  * @param int $footnoteType 
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token, array $name, $footnoteType = self::NUMBERED)
 {
     // Perhaps check, that only node of type section and metadata are
     // added.
     parent::__construct($token, self::FOOTNOTE);
     $this->name = $name;
     $this->footnoteType = $footnoteType;
 }
 /**
  * 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_LIST);
 }
示例#4
0
 /**
  * Construct RST document node
  *
  * @param ezcDocumentRstToken $token
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token)
 {
     parent::__construct($token, self::TARGET);
 }
 /**
  * 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::ANON_REFERENCE);
 }
示例#6
0
 /**
  * Construct RST document node
  *
  * @param ezcDocumentRstToken $token
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token)
 {
     parent::__construct($token, self::TRANSITION);
 }
 /**
  * Construct RST document node
  *
  * @param ezcDocumentRstToken $token
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token)
 {
     parent::__construct($token, self::MARKUP_LITERAL);
 }
示例#8
0
 /**
  * Construct RST document node
  *
  * @param ezcDocumentRstToken $token
  * @param ezcDocumentRstTitleNode $title
  * @param int $depth
  * @return void
  */
 public function __construct(ezcDocumentRstToken $token, ezcDocumentRstTitleNode $title = null, $depth = 0)
 {
     parent::__construct($token, self::SECTION);
     $this->title = $title;
     $this->depth = $depth;
 }