本文整理汇总了PHP中Scheduler::checkCurl方法的典型用法代码示例。如果您正苦于以下问题:PHP Scheduler::checkCurl方法的具体用法?PHP Scheduler::checkCurl怎么用?PHP Scheduler::checkCurl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Scheduler
的用法示例。
在下文中一共展示了Scheduler::checkCurl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Email
global $current_user;
if (!is_admin($current_user)) {
sugar_die("Unauthorized access to administration.");
}
$_REQUEST['edit'] = 'true';
$header_text = '';
global $mod_strings;
global $app_list_strings;
global $app_strings;
global $current_user;
global $timedate;
$email = new Email();
/* Start standard EditView setup logic */
$mod_strings = return_module_language($current_language, 'Schedulers');
$focus = new Scheduler();
$focus->checkCurl();
if (isset($_REQUEST['record'])) {
Log::debug("In Scheduler edit view, about to retrieve record: " . $_REQUEST['record']);
$result = $focus->retrieve($_REQUEST['record']);
if ($result == null) {
sugar_die($app_strings['ERROR_NO_RECORD']);
}
}
if (isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') {
Log::debug("isDuplicate found - duplicating record of id: " . $focus->id);
$focus->id = "";
}
$params = array();
$params[] = "<a href='index.php?module=Schedulers&action=index'>{$mod_strings['LBL_MODULE_TITLE']}</a>";
if (empty($focus->id)) {
$params[] = $GLOBALS['app_strings']['LBL_CREATE_BUTTON_LABEL'];
示例2: testcheckCurl
public function testcheckCurl()
{
$scheduler = new Scheduler();
//execute the method and test if it works and does not throws an exception.
try {
$scheduler->checkCurl();
$this->assertTrue(true);
} catch (Exception $e) {
$this->fail();
}
}