Example #1
0
 /**
  * Assignes given restrictions to given criteria
  * @param array $restrictions given restrictions
  * @param CDbCriteria $query given criteria
  */
 private function _assignRestrictions($restrictions, &$query)
 {
     if (!empty($restrictions)) {
         foreach ($restrictions as $column => $values) {
             $query->where([$column => $values]);
         }
     }
 }