Пример #1
0
 /**
  * Remove rights and all their relevant relations
  *
  * @param array key values pairs (value may be a string or an array)
  *                      This will construct the WHERE clause of your update
  *                      Be careful, if you leave this blank no WHERE clause
  *                      will be used and all rights will be affected by the remove
  * @return int|bool false on error, the affected rows on success
  *
  * @access public
  */
 function removeRight($filters)
 {
     $filters = $this->_makeRemoveFilter($filters, 'right_id', 'getRights');
     if (!$filters) {
         return $filters;
     }
     $result = $this->revokeGroupRight($filters);
     if ($result === false) {
         return false;
     }
     return parent::removeRight($filters);
 }