protected function _actionBrowse($context)
    {
        $this->getService('repos:photos.set');
        $photos = parent::_actionBrowse($context);
        $photos->order('creationTime', 'DESC');

        if ($this->exclude_set != '') {
            $set = $this->actor->sets->fetch(array('id' => $this->exclude_set));

            if (!empty($set)) {
                $photo_ids = array();

                foreach ($set->photos as $photo) {
                    $photo_ids[] = $photo->id;
                }

                if (count($photo_ids)) {
                    $photos->where('photo.id', '<>', $photo_ids);
                }
            }
        }

        return $photos;
    }
protected function _actionBrowse($context)
    {
        $this->getService('repos:photos.set');
        $photos = parent::_actionBrowse($context);
        $photos->order('creationTime', 'DESC');

        if ($this->exclude_set != '') {
            $set = $this->actor->sets->fetch(array('id' => $this->exclude_set));

            if (!empty($set)) {
                $photo_ids = array();

                foreach ($set->photos as $photo) {
                    $photo_ids[] = $photo->id;
                }

                if (count($photo_ids)) {
                    $photos->where('photo.id', '<>', $photo_ids);
                }
            }
        }

        return $photos;
    }
protected function _actionBrowse ( $ context ) { $ this -> getService ( 'repos:photos.set' ) ; $ photos = parent :: _actionBrowse ( $ context ) ; $ photos -> order ( 'creationTime' , 'DESC' ) ; if ( $ this -> exclude_set != '' ) { $ set = $ this -> actor -> sets -> fetch ( array ( 'id' => $ this -> exclude_set ) ) ; if ( ! empty ( $ set ) ) { $ photo_ids = array ( ) ; foreach ( $ set -> photos as $ photo ) { $ photo_ids [ ] = $ photo -> id ; } if ( count ( $ photo_ids ) ) { $ photos -> where ( 'photo.id' , '<>' , $ photo_ids ) ; } } } return $ photos ; }
Browse Photos.

@param AnCommandContext $context
Browse Photos .