当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Gdata::__set方法代码示例

本文整理汇总了PHP中Zend_Gdata::__set方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata::__set方法的具体用法?PHP Zend_Gdata::__set怎么用?PHP Zend_Gdata::__set使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Gdata的用法示例。


在下文中一共展示了Zend_Gdata::__set方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __set

 /**
  * @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);
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:15,代码来源:Spreadsheets.php

示例2: __set

 /**
  * @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);
 }
开发者ID:BackupTheBerlios,项目名称:openpublisher-svn,代码行数:14,代码来源:CodeSearch.php

示例3: __set

 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);
 }
开发者ID:BackupTheBerlios,项目名称:openpublisher-svn,代码行数:41,代码来源:Calendar.php

示例4: __set

 /**
  * @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);
 }
开发者ID:BackupTheBerlios,项目名称:openpublisher-svn,代码行数:36,代码来源:Blogger.php

示例5: __set

 /**
  * @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);
 }
开发者ID:BackupTheBerlios,项目名称:openpublisher-svn,代码行数:20,代码来源:Base.php


注:本文中的Zend_Gdata::__set方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。