/** * @return array */ public static function getTopContacts() { Yii::import('application.components.leftWidget.TopContacts'); return TopContacts::getBookmarkedRecords(); }
public function actionRemoveTopContact($recordId, $modelClass) { Yii::import('application.components.leftWidget.TopContacts'); $model = $this->getModelFromTypeAndId($modelClass, $recordId, false); if (TopContacts::removeBookmark($model)) { $this->renderTopContacts(); } }