本文整理汇总了PHP中Service::getData方法的典型用法代码示例。如果您正苦于以下问题:PHP Service::getData方法的具体用法?PHP Service::getData怎么用?PHP Service::getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Service
的用法示例。
在下文中一共展示了Service::getData方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
/**
* @return array of SimplePie feed item objects
*/
public function getData()
{
static $id = 0;
$data = parent::getData();
if (!$data) {
return false;
}
return $data->get_items();
}
示例2: widget
/**
* Main process of widget
*
* @param array $args
* @param array $instance
*/
public function widget($metric, $url = null)
{
$username = Engine_Api::_()->getApi('settings', 'core')->getSetting('ynblog.username');
$password = Engine_Api::_()->getApi('settings', 'core')->getSetting('ynblog.password');
$dimension = 'url';
$oRequest = new Request(new Authentication($username, $password), new Metric($metric), new Dimension($dimension), Ynblog_Api_Addthis::getServiceQuery());
$oService = new Service($oRequest);
$response = $oService->getData();
echo Ynblog_Api_Addthis::getContent($response, $url);
return Ynblog_Api_Addthis::getContent($response, $url);
}
示例3: getData
public function getData()
{
return parent::getData();
}
示例4: getData
public function getData()
{
$data = parent::getData();
return $data->channel->item;
}
示例5: getData
/**
* @return SimpleXMLElement
*/
public function getData()
{
$data = parent::getData();
return $data->entry;
}
示例6: getData
/**
* Overcharge parent::getData()
* @return SimpleXMLElement
*/
public function getData()
{
$data = parent::getData();
return $data->photos->photo;
}
示例7: getData
/**
* @return array
*/
public function getData()
{
return parent::getData()->repository;
}
示例8: getData
public function getData()
{
return parent::getData()->data->children;
}
示例9: getData
/**
* @return array
*/
public function getData()
{
return parent::getData()->gist;
}