Example #1
0
 public function _initProfiler()
 {
     if ($this->getEnvironment() == 'development') {
         $profiler = new Zend_Db_Profiler_Firebug('All DB Queries');
         $profiler->setEnabled(true);
         $db = Keplin_Model_Mapper_Abstract::getDefaultDb();
         $db->setProfiler($profiler);
     }
 }
Example #2
0
 public static function setDefaultDb(Zend_Db_Adapter_Abstract $db)
 {
     self::$_defaultDb = $db;
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     $this->is_published = 1;
 }