示例#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);
     }
 }
示例#2
0
文件: Abstract.php 项目: kminkov/Blog
 public static function setDefaultDb(Zend_Db_Adapter_Abstract $db)
 {
     self::$_defaultDb = $db;
 }
示例#3
0
文件: Post.php 项目: kminkov/Blog
 public function __construct()
 {
     parent::__construct();
     $this->is_published = 1;
 }