本文整理汇总了PHP中AppletInstance::getFlow方法的典型用法代码示例。如果您正苦于以下问题:PHP AppletInstance::getFlow方法的具体用法?PHP AppletInstance::getFlow怎么用?PHP AppletInstance::getFlow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppletInstance
的用法示例。
在下文中一共展示了AppletInstance::getFlow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_instance
<?php
$CI =& get_instance();
$status = @$_REQUEST['status'];
$flow = @AppletInstance::getFlow();
$flow_id = $flow->id;
$instance_id = AppletInstance::getInstanceId();
function zendesk_client($path, $method = 'GET', $xml = '')
{
// {{{
$ch = curl_init();
curl_setopt_array($ch, array(CURLOPT_URL => ZENDESK_URL . $path, CURLOPT_HTTPAUTH => CURLAUTH_BASIC, CURLOPT_HEADER => FALSE, CURLOPT_FOLLOWLOCATION => TRUE, CURLOPT_USERPWD => ZENDESK_EMAIL . ':' . ZENDESK_PASSWORD, CURLOPT_RETURNTRANSFER => TRUE));
switch ($method) {
case 'GET':
curl_setopt($ch, CURLOPT_HTTPGET, TRUE);
break;
case 'POST':
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
break;
case 'PUT':
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml"));
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PUT');
break;
case 'DELETE':
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
break;
default:
return FALSE;