parameter->setDefault('limit=5'); if ($this->parameter->author) { $this->db->fetchAll($this->select() ->where('table.contents.authorId = ?', $this->parameter->author) ->where('table.contents.cid <> ?', $this->parameter->cid) ->where('table.contents.status = ?', 'publish') ->where('table.contents.password IS NULL') ->where('table.contents.created < ?', $this->options->gmtTime) ->where('table.contents.type = ?', $this->parameter->type) ->order('table.contents.created', Typecho_Db::SORT_DESC) ->limit($this->parameter->limit), array($this, 'push')); } } }