Пример #1
0
 /**
  * Construct Wiki node
  * 
  * @param ezcDocumentWikiToken $token
  * @param int $type 
  * @return void
  */
 public function __construct(ezcDocumentWikiToken $token)
 {
     parent::__construct($token);
     $this->type = $token->type;
     $this->parameters = $token->parameters;
     $this->text = $token->text;
 }
Пример #2
0
 /**
  * Construct Wiki node
  *
  * @param ezcDocumentWikiToken $token
  * @param int $type
  * @return void
  */
 public function __construct(ezcDocumentWikiToken $token)
 {
     parent::__construct($token);
     $this->header = $token instanceof ezcDocumentWikiTableHeaderToken;
 }
Пример #3
0
 /**
  * Construct Wiki node
  *
  * @param ezcDocumentWikiToken $token
  * @param int $type
  * @return void
  */
 public function __construct(ezcDocumentWikiToken $token)
 {
     parent::__construct($token);
     $this->level = $token instanceof ezcDocumentWikiTitleToken ? $token->level : 0;
 }