/** * 重载select * * @access public * @return void */ public function select() { if ($this->_feed) { // 对feed输出加入限制条件 return parent::select()->where('table.contents.allowFeed = ?', 1)->where('table.contents.password IS NULL'); } else { return parent::select(); } }