本文整理汇总了PHP中Tasks::SetUserID方法的典型用法代码示例。如果您正苦于以下问题:PHP Tasks::SetUserID方法的具体用法?PHP Tasks::SetUserID怎么用?PHP Tasks::SetUserID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tasks
的用法示例。
在下文中一共展示了Tasks::SetUserID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Notification
require_once 'class/class.contacts.php';
require_once 'class/class.project.php';
require_once 'class/class.note.php';
require_once 'class/class.tasks.php';
require_once 'class/class.GlobalTask.php';
$page = new basic_page();
$page->auth->Checklogin();
$notify = new Notification();
$ajax = new PHPLiveX();
$project = new Project();
$note = new Note();
$user = new User();
$task = new Tasks();
$global_task = new GlobalTask();
$task->SetUserObject($user);
$task->SetUserID($page->auth->Get_user_id());
$ajax->AjaxifyObjects(array("project", "task", "global_task"));
$page->setPageKeywords('');
$page->setPageDescription('');
$page->setPageTitle("PROJECT PROFILE");
$page->setActiveButton('9');
//$page -> setInnerNav('');
//$page -> SetDynamicCSS_1('main_style.css');
//$page -> SetDynamicCSS_2('form.css');
$page->SetDynamicCSS_1('main_style.php');
$page->SetDynamicCSS_2('form.php');
$page->setImportCss3('css/all.css');
$page->setImportCss4('src/css/jscal2.css');
$page->setImportCss5('src/css/border-radius.css');
$page->setImportCss6('tablesort/themes/blue/style.css');
$page->setImportCss7('contact_profile.css');
示例2: addTodo
function addTodo($module='',$profile_page='',$module_id='',$order_id='',$product_id='',$type=''){
ob_start();
$tasks = new Tasks();
$tasks -> SetUserID($_SESSION['user_id']);
$tasks -> SetModuleID($_SESSION['contact_id']);
if($type == 'server'){
//echo 'server'.$product_id;
$tasks->AddTask('server',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);}
else{
//echo 'local'.$product_id;
$tasks->AddTask('local',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);}
?>
<a href="javascript:void(0);" onClick="document.getElementById('task_link<?php echo $product_id;?>').style.display='';
document.getElementById('task_form<?php echo $product_id;?>').style.display='none';
return false;">cancel</a>
<?php
$html=ob_get_contents();
ob_end_clean();
return $html;
}