Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3186 | Rev 3454 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3186 Rev 3254
Línea 242... Línea 242...
242
    public function fetchAllActivesByDefault() {
242
    public function fetchAllActivesByDefault() {
243
        $prototype = new Behavior();
243
        $prototype = new Behavior();
244
        $select = $this->sql->select(self::_TABLE);
244
        $select = $this->sql->select(self::_TABLE);
245
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
245
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
246
        $select->where->isNull('company_id');
246
        $select->where->isNull('company_id');
247
        $select->order('name ASC');
247
        $select->order('description ASC');
Línea 248... Línea 248...
248
 
248
 
249
        return $this->executeFetchAllObject($select, $prototype);
249
        return $this->executeFetchAllObject($select, $prototype);
Línea 250... Línea 250...
250
    }
250
    }
Línea 256... Línea 256...
256
    public function fetchAllActivesByCompanyId($company_id) {
256
    public function fetchAllActivesByCompanyId($company_id) {
257
        $prototype = new Behavior();
257
        $prototype = new Behavior();
258
        $select = $this->sql->select(self::_TABLE);
258
        $select = $this->sql->select(self::_TABLE);
259
        $select->where->equalTo('company_id', $company_id);
259
        $select->where->equalTo('company_id', $company_id);
260
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
260
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
261
        $select->order('name ASC');
261
        $select->order('description ASC');
Línea 262... Línea 262...
262
 
262
 
263
        return $this->executeFetchAllObject($select, $prototype);
263
        return $this->executeFetchAllObject($select, $prototype);
Línea 264... Línea 264...
264
    }
264
    }
Línea 269... Línea 269...
269
     */
269
     */
270
    public function fetchAllByCompanyId($company_id) {
270
    public function fetchAllByCompanyId($company_id) {
271
        $prototype = new Behavior();
271
        $prototype = new Behavior();
272
        $select = $this->sql->select(self::_TABLE);
272
        $select = $this->sql->select(self::_TABLE);
273
        $select->where->equalTo('company_id', $company_id);
273
        $select->where->equalTo('company_id', $company_id);
274
        $select->order('name ASC');
274
        $select->order('description ASC');
Línea 275... Línea 275...
275
 
275
 
276
        return $this->executeFetchAllObject($select, $prototype);
276
        return $this->executeFetchAllObject($select, $prototype);
Línea 277... Línea 277...
277
    }
277
    }