本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}