public function render($formatted = FALSE) { $this->add_info('time', time()); return parent::render($formatted); }
public function render($formatted = FALSE) { if ( ! $this->published) { // Add the published node with current date $this->add_node("published", time()); } // Add the link to self $this->add_node("link", NULL, array("rel" => "self", "href" => $_SERVER['REQUEST_URI'])); return parent::render($formatted); }