Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 2
0
 /**
  *
  * @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);
 }
Ejemplo n.º 3
0
 public function findAllByAttributes($attributes, $condition = '', $params = array())
 {
     return $this->prepareRecords(parent::findAllByAttributes($attributes, $this->prepareCondition($condition), $params));
 }