private function build_photo_url($photoid) {
        $bestsize = $this->get_best_size($photoid);
        if (!isset($bestsize['source'])) {
            throw new repository_exception('cannotdownload', 'repository');
        }
        return $bestsize['source'];
    }
private function build_photo_url($photoid) {
        $bestsize = $this->get_best_size($photoid);
        if (!isset($bestsize['source'])) {
            throw new repository_exception('cannotdownload', 'repository');
        }
        return $bestsize['source'];
    }
private function build_photo_url ( $ photoid ) { $ bestsize = $ this -> get_best_size ( $ photoid ) ; if ( ! isset ( $ bestsize [ 'source' ] ) ) { throw new repository_exception ( 'cannotdownload' , 'repository' ) ; } return $ bestsize [ 'source' ] ; }
Return photo url by given photo id
@param string $photoid
@return string
Return photo url by given photo id