Пример #1
0
 /**
  * @param string $var
  * @param string $value
  * @throws Zend_Gdata_InvalidArgumentException
  */
 protected function __set($var, $value)
 {
     switch ($var) {
         case 'updatedMin':
         case 'updatedMax':
             throw new Zend_Gdata_InvalidArgumentException("Parameter '{$var}' is not currently supported in Spreadsheets.");
             break;
     }
     parent::__set($var, $value);
 }
 /**
  * @param string $var
  * @param string $value
  */
 protected function __set($var, $value)
 {
     switch ($var) {
         case 'updatedMin':
         case 'updatedMax':
             throw Zend::exception('Zend_Gdata_Exception', "Parameter '{$var}' is not currently supported in CodeSearch.");
             break;
     }
     parent::__set($var, $value);
 }
 protected function __set($var, $value)
 {
     switch ($var) {
         case 'startMin':
             $var = 'start-min';
             $value = $this->formatTimestamp($value);
             break;
         case 'startMax':
             $var = 'start-max';
             $value = $this->formatTimestamp($value);
             break;
         case 'visibility':
         case 'projection':
             if (!Zend_Gdata_Data::isValid($value, $var)) {
                 throw Zend::exception('Zend_Gdata_Exception', "Unsupported {$var} value: '{$value}'");
             }
             $var = "_{$var}";
             break;
         case 'orderby':
             if (!Zend_Gdata_Data::isValid($value, 'orderby#calendar')) {
                 throw Zend::exception('Zend_Gdata_Exception', "Unsupported {$var} value: '{$value}'");
             }
             break;
         case 'user':
             $var = '_user';
             // @todo: validate user value
             break;
         case 'event':
             $var = '_event';
             // @todo: validate event value
             break;
         case 'comments':
             $var = '_comments';
             // @todo: validate comments subfeed value
             break;
         default:
             // other params are handled by parent
             break;
     }
     parent::__set($var, $value);
 }
 /**
  * @param string $var
  * @param string $value
  */
 protected function __set($var, $value)
 {
     switch ($var) {
         case 'query':
         case 'q':
             $var = 'q';
             throw Zend::exception('Zend_Gdata_Exception', 'Text queries are not currently supported in Blogger.');
             break;
         case 'publishedMin':
             $var = 'published-min';
             $value = $this->formatTimestamp($value);
             break;
         case 'publishedMax':
             $var = 'published-max';
             $value = $this->formatTimestamp($value);
             break;
         case 'blogName':
             $var = '_blogName';
             break;
         case 'category':
             $var = '_category';
             throw Zend::exception('Zend_Gdata_Exception', 'Category queries are not currently supported in Blogger.');
             break;
         case 'entry':
             $var = '_entry';
             throw Zend::exception('Zend_Gdata_Exception', 'Entry queries are not currently supported in Blogger.');
             break;
         default:
             break;
     }
     parent::__set($var, $value);
 }
Пример #5
0
 /**
  * @param string $var
  * @param mixed $value
  */
 protected function __set($var, $value)
 {
     switch ($var) {
         case 'query':
             $var = 'bq';
             break;
         case 'category':
             $var = '_category';
             // @todo: validate category value
             break;
         default:
             // other params are handled by the parent
             break;
     }
     parent::__set($var, $value);
 }