Beispiel #1
0
 /**
  * Constructor
  */
 protected function __construct()
 {
     $this->app = App::getInstance('zoo');
     $this->_db = JFactory::getDbo();
     $this->_dbHelper = $this->app->database;
     $this->_jbtables = $this->app->jbtables;
     $this->_jbcache = $this->app->jbcache;
     $this->_dbNow = $this->_db->quote($this->app->date->create()->toSql());
     $this->_dbNull = $this->_db->quote($this->_db->getNullDate());
 }
Beispiel #2
0
 /**
  * Returns database null date format
  *
  * @return string Quoted null date string
  */
 public function getNullDate()
 {
     return $this->db->getNullDate();
 }