예제 #1
0
파일: Gdata.php 프로젝트: hackingman/TubeX
 public function getEntry($location, $className = 'Zend_Gdata_Entry')
 {
     if (is_string($location)) {
         $uri = $location;
     } elseif ($location instanceof Zend_Gdata_Query) {
         $uri = $location->getQueryUrl();
     } else {
         require_once 'Zend/Gdata/App/InvalidArgumentException.php';
         throw new Zend_Gdata_App_InvalidArgumentException('You must specify the location as either a string URI ' . 'or a child of Zend_Gdata_Query');
     }
     return parent::getEntry($uri, $className);
 }