Esempio n. 1
0
File: xyz.php Progetto: refo/kohana
	public function render($formatted = FALSE)
	{

		$this->add_info('time', time());
		
		return parent::render($formatted);
	}
Esempio n. 2
0
File: atom.php Progetto: refo/kohana
	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);
	}