IndexAction::_weiba_recommend PHP Méthode

_weiba_recommend() private méthode

微吧推荐
private _weiba_recommend ( $limit = 9, $width = 100, $height = 100 )
    private function _weiba_recommend($limit = 9, $width = 100, $height = 100)
    {
        $weiba_recommend = D('weiba')->where('recommend=1 and status=1 and is_del=0')->limit($limit)->findAll();
        foreach ($weiba_recommend as $k => $v) {
            $weiba_recommend[$k]['logo'] = getImageUrlByAttachId($v['logo'], $width, $height);
        }
        $weiba_ids = getSubByKey($weiba_recommend, 'weiba_id');
        $this->_assignFollowState($weiba_ids);
        $this->assign('weiba_recommend', $weiba_recommend);
    }