/** * findAllByAttributes */ public function findAllByAttributes($attributes, $condition = '', $params = array()) { foreach ($attributes as $attribute => $value) { if (in_array($attribute, $this->encrypt)) { $attributes[$attribute] = $this->encryptDecrypt($value); } } return parent::findAllByAttributes($attributes, $condition, $params); }
/** * * @param array $attributes * @param string $condition * @param array $params * @return array */ public function findAllByAttributes($attributes, $condition = '', $params = array()) { if (CStubActiveRecord::isUnittests()) { return CallFactory::call($this, 'findAllByAttributes'); } return parent::findAllByAttributes($attributes, $condition, $params); }
public function findAllByAttributes($attributes, $condition = '', $params = array()) { return $this->prepareRecords(parent::findAllByAttributes($attributes, $this->prepareCondition($condition), $params)); }