Esempio n. 1
0
 /**
  * Constructs a new object object from DOM Document.
  *
  * @param   DomElement $dom the ReST fragment for this object
  */
 public function __construct(DomElement $dom)
 {
     $this->fields = array('tag' => 'tag', 'posts' => 'posts');
     parent::__construct($dom);
     // filter fields
     $this->tag = (string) $this->tag;
     $this->posts = (int) $this->posts;
 }
Esempio n. 2
0
 /**
  * Constructs a new object object from DOM Document.
  *
  * @param   DomElement $dom the ReST fragment for this object
  */
 public function __construct(DomElement $dom)
 {
     $this->fields = array('date' => 'date', 'count' => 'count');
     parent::__construct($dom);
     // filter fields
     $this->date = new DateTime($this->date);
     $this->count = (int) $this->count;
 }
Esempio n. 3
0
 /**
  * Constructs a new object object from DOM Element.
  *
  * @param   DomElement $dom the ReST fragment for this object
  */
 public function __construct(DomElement $dom)
 {
     $this->fields = array('permalink' => 'permalink', 'excerpt' => 'excerpt', 'created' => 'created', 'title' => 'title');
     parent::__construct($dom);
     // weblog object field
     $this->parseWeblog();
     // filter fields
     $this->permalink = Utils::normalizeUriHttp($this->permalink);
     $this->created = Utils::normalizeDate($this->created);
 }
Esempio n. 4
0
 /**
  * Constructs a new object object from DOM Element.
  *
  * @param   DomElement $dom the ReST fragment for this object
  */
 public function __construct(DomElement $dom)
 {
     $this->fields = array('nearestPermalink' => 'nearestpermalink', 'excerpt' => 'excerpt', 'linkCreated' => 'linkcreated', 'linkUrl' => 'linkurl');
     parent::__construct($dom);
     // weblog object field
     $this->parseWeblog();
     // filter fields
     $this->nearestPermalink = Utils::normalizeUriHttp($this->nearestPermalink);
     $this->linkUrl = Utils::normalizeUriHttp($this->linkUrl);
     $this->linkCreated = Utils::normalizeDate($this->linkCreated);
 }