protected function afterStore(&$response, &$params, &$store, $storeParams)
 {
     \GO\Summary\Model\LatestReadAnnouncementRecord::updateLatestRecord(\GO::user()->id);
     return parent::afterStore($response, $params, $store, $storeParams);
 }
Example #2
0
 protected function afterStore(&$response, &$params, &$store, $storeParams)
 {
     if (isset($params['ta-taskslists'])) {
         $findParams = \GO\Base\Db\FindParams::newInstance()->select('t.id,t.name')->limit(\GO::config()->nav_page_size);
         $findParams->getCriteria()->addInCondition('id', json_decode($params['ta-taskslists']));
         $tasklists = \GO\Tasks\Model\Tasklist::model()->find($findParams);
         $response['selectable_tasklists'] = array();
         foreach ($tasklists as $tasklist) {
             $response['selectable_tasklists'][] = array('data' => array('id' => $tasklist->id, 'name' => $tasklist->name));
         }
     }
     return parent::afterStore($response, $params, $store, $storeParams);
 }