public static function all($limit = 10, $status = 'all') { $where['uid'] = \Yii::$app->user->getId(); if ($status != 'all') { $where['status'] = parent::STATUS_PUBLISH; } return parent::_list($where, $limit); }