Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3212 Rev 3261
Línea 417... Línea 417...
417
 
417
 
418
     /**
418
     /**
419
     *
419
     *
420
     * @return Feed
420
     * @return Feed
421
     */
421
     */
422
    public function fetchAllByDevelop($allowEdit)
422
    public function fetchAllByDevelop()
423
    {
423
    {
Línea 424... Línea 424...
424
        $prototype = new Feed();
424
        $prototype = new Feed();
425
        
425
        
426
        $select = $this->sql->select(self::_TABLE);
426
        $select = $this->sql->select(self::_TABLE);
427
        $select->where->equalTo('type', Feed::TYPE_DC);
-
 
428
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
-
 
429
 
-
 
430
        if(!$allowEdit){
-
 
431
            $select->where->equalTo('status', Feed::STATUS_PUBLISHED);
-
 
432
        }
427
        $select->where->equalTo('type', Feed::TYPE_DC);
Línea 433... Línea 428...
433
        
428
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
434
        $select->order('added_on DESC');
429
        $select->order('added_on DESC');
-
 
430
        
-
 
431
        return $this->executeFetchAllObject($select, $prototype);
-
 
432
    }
-
 
433
 
-
 
434
    public function fetchAllByDevelopContentPublished()
-
 
435
    {
-
 
436
        $prototype = new Feed();
-
 
437
 
-
 
438
        $select = $this->sql->select(self::_TABLE);
-
 
439
        $select->where->equalTo('type', Feed::TYPE_DC);
-
 
440
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
-
 
441
        $select->where->equalTo('status', Feed::STATUS_PUBLISHED);
-
 
442
        $select->order('added_on DESC');
435
        
443
 
436
        return $this->executeFetchAllObject($select, $prototype);
444
        return $this->executeFetchAllObject($select, $prototype);
437
    }
445
    }
438
    /**
446
    /**
439
     *
447
     *
-
 
448
     * @return Feed
-
 
449
     */
-
 
450
    public function fetchAllByDevelopContentByCategoryId($id)
-
 
451
    {
-
 
452
        $prototype = new Feed();
-
 
453
 
-
 
454
        $select = $this->sql->select(self::_TABLE);
-
 
455
        $select->where->equalTo('type', Feed::TYPE_DC);
-
 
456
        $select->where->equalTo('topic_id', $id);
-
 
457
        $select->where->notEqualTo('status', Feed::STATUS_DELETED);
-
 
458
 
-
 
459
        $select->order('added_on DESC');
-
 
460
 
-
 
461
        return $this->executeFetchAllObject($select, $prototype);
-
 
462
    }
-
 
463
 
-
 
464
    /**
-
 
465
     *
440
     * @return Feed
466
     * @return Feed
441
     */
467
     */
Línea 442... Línea 468...
442
    public function fetchAllByDevelopAndCategoryId($id, $allowEdit = false)
468
    public function fetchAllByDevelopContentByCategoryIdPublished($id)
443
    {
469
    {
Línea 455... Línea 481...
455
 
481
 
456
        return $this->executeFetchAllObject($select, $prototype);
482
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 483...
-
 
483
    }
457
    }
484
 
458
 
485
 
459
 
486
 
460
    /**
487
    /**
461
     *
488
     *