/**
  * {@inheritDoc}
  * @see IPluggableAccessManager::getGroupAuthAssignments()
  */
 public function getGroupAuthAssignments(IPluggableModule $module, IPluggableUserGroup $group)
 {
     $criteria = new CDbCriteria();
     $criteria->with = array('accessRole', array('alias' => 'r'));
     $criteria->compare('r.module_name', $module->getId());
     $criteria->compare('user_group_id', $group->getId());
     return AccessGroupAssignment::model()->findAll($criteria);
 }
 /**
  * {@inheritDoc}
  * @see IPluggableAccessManager::getGroupAuthAssignments()
  */
 public function getGroupAuthAssignments(IPluggableModule $module, IPluggableUserGroup $group)
 {
     $assignments = $this->_manager->getAuthAssignments($group->getId());
     $auths = array();
     foreach ($assignments as $assignment) {
         /* @var $assignment CAuthAssignment */
         $role = $this->getAuthItem($module, $assignment->itemName);
         if ($role !== null) {
             $auths[] = new PluggableAccessGroupAssignment($group, $role, $assignment->bizRule, $assignment->data);
         }
     }
     return $auths;
 }