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