本文整理汇总了PHP中DAO_Worker::getAllWithDisabled方法的典型用法代码示例。如果您正苦于以下问题:PHP DAO_Worker::getAllWithDisabled方法的具体用法?PHP DAO_Worker::getAllWithDisabled怎么用?PHP DAO_Worker::getAllWithDisabled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DAO_Worker
的用法示例。
在下文中一共展示了DAO_Worker::getAllWithDisabled方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showTabWorkersAction
function showTabWorkersAction()
{
$tpl = DevblocksPlatform::getTemplateService();
$tpl->assign('path', $this->_TPL_PATH);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$teams = DAO_Group::getAll();
$tpl->assign('teams', $teams);
$tpl->assign('response_uri', 'config/workers');
$defaults = new C4_AbstractViewModel();
$defaults->id = 'workers_cfg';
$defaults->class_name = 'C4_WorkerView';
$view = C4_AbstractViewLoader::getView($defaults->id, $defaults);
$tpl->assign('view', $view);
$tpl->assign('view_fields', C4_WorkerView::getFields());
$tpl->assign('view_searchable_fields', C4_WorkerView::getSearchFields());
$tpl->assign('license', CerberusLicense::getInstance());
$tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/workers/index.tpl');
}
示例2: showTabWorkersAction
function showTabWorkersAction()
{
$tpl = DevblocksPlatform::getTemplateService();
$tpl->assign('path', $this->_TPL_PATH);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$tpl->assign('response_uri', 'setup/workers');
$defaults = new Feg_AbstractViewModel();
$defaults->id = 'workers_cfg';
$defaults->class_name = 'View_Worker';
$view = Feg_AbstractViewLoader::getView($defaults->id, $defaults);
$tpl->assign('view', $view);
$tpl->assign('view_fields', View_Worker::getFields());
$tpl->assign('view_searchable_fields', View_Worker::getSearchFields());
$tpl->assign('license', FegLicense::getInstance());
$tpl->display('file:' . $this->_TPL_PATH . 'setup/tabs/workers/index.tpl');
}
示例3: showTabWorkersAction
function showTabWorkersAction()
{
$tpl = DevblocksPlatform::getTemplateService();
$tpl->cache_lifetime = "0";
$tpl->assign('path', $this->_TPL_PATH);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$teams = DAO_Group::getAll();
$tpl->assign('teams', $teams);
$tpl->assign('license', CerberusLicense::getInstance());
$tpl->display('file:' . $this->_TPL_PATH . 'configuration/tabs/workers/index.tpl');
}
示例4: showOppNotesTabAction
function showOppNotesTabAction()
{
@($opp_id = DevblocksPlatform::importGPC($_REQUEST['id'], 'integer'));
$tpl = DevblocksPlatform::getTemplateService();
$tpl_path = dirname(dirname(__FILE__)) . '/templates/';
$tpl->assign('path', $tpl_path);
$opp = DAO_CrmOpportunity::get($opp_id);
$tpl->assign('opp', $opp);
list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', CrmNotesSource_Opportunity::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $opp->id)), 25, 0, DAO_Note::CREATED, false, false);
$tpl->assign('notes', $notes);
$active_workers = DAO_Worker::getAllActive();
$tpl->assign('active_workers', $active_workers);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$tpl->display('file:' . $tpl_path . 'crm/opps/display/tabs/notes.tpl');
}
示例5: showTabNotesAction
function showTabNotesAction()
{
$tpl = DevblocksPlatform::getTemplateService();
$tpl->assign('path', $this->_TPL_PATH);
@($org_id = DevblocksPlatform::importGPC($_REQUEST['org']));
$org = DAO_ContactOrg::get($org_id);
$tpl->assign('org', $org);
list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', ChNotesSource_Org::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $org->id)), 25, 0, SearchFields_Note::CREATED, false, false);
$tpl->assign('notes', $notes);
$active_workers = DAO_Worker::getAllActive();
$tpl->assign('active_workers', $active_workers);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$tpl->display('file:' . $this->_TPL_PATH . 'contacts/orgs/tabs/notes.tpl');
}
示例6: showTaskNotesTabAction
function showTaskNotesTabAction()
{
@($task_id = DevblocksPlatform::importGPC($_REQUEST['id'], 'integer'));
$tpl = DevblocksPlatform::getTemplateService();
$tpl_path = dirname(dirname(dirname(__FILE__))) . '/templates/';
$tpl->assign('path', $tpl_path);
$visit = CerberusApplication::getVisit();
// $visit->set(self::SESSION_OPP_TAB, 'notes');
$task = DAO_Task::get($task_id);
$tpl->assign('task', $task);
list($notes, $null) = DAO_Note::search(array(new DevblocksSearchCriteria(SearchFields_Note::SOURCE_EXT_ID, '=', ChNotesSource_Task::ID), new DevblocksSearchCriteria(SearchFields_Note::SOURCE_ID, '=', $task->id)), 25, 0, SearchFields_Note::CREATED, false, false);
$tpl->assign('notes', $notes);
$active_workers = DAO_Worker::getAllActive();
$tpl->assign('active_workers', $active_workers);
$workers = DAO_Worker::getAllWithDisabled();
$tpl->assign('workers', $workers);
$tpl->display('file:' . $tpl_path . 'tasks/display/tabs/notes.tpl');
}