Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3254 Rev 3454
Línea 224... Línea 224...
224
 
224
 
225
    /**
225
    /**
226
     *
226
     *
227
     * @return Behavior[]
227
     * @return Behavior[]
228
     */
228
     */
229
    public function fetchAllActives() {
229
    public function fetchAllActive() {
230
        $prototype = new Behavior();
230
        $prototype = new Behavior();
231
        $select = $this->sql->select(self::_TABLE);
231
        $select = $this->sql->select(self::_TABLE);
232
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
232
        $select->where->equalTo('status', Behavior::STATUS_ACTIVE);
Línea 237... Línea 237...
237
 
237
 
238
    /**
238
    /**
239
     *
239
     *
240
     * @return Behavior[]
240
     * @return Behavior[]
241
     */
241
     */
242
    public function fetchAllActivesByDefault() {
242
    public function fetchAllActiveByDefault() {
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');
Línea 251... Línea 251...
251
 
251
 
252
    /**
252
    /**
253
     *
253
     *
254
     * @return Behavior[]
254
     * @return Behavior[]
255
     */
255
     */
256
    public function fetchAllActivesByCompanyId($company_id) {
256
    public function fetchAllActiveByCompanyId($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);