本文整理汇总了PHP中TrackerManager::getCriteriaBuilder方法的典型用法代码示例。如果您正苦于以下问题:PHP TrackerManager::getCriteriaBuilder方法的具体用法?PHP TrackerManager::getCriteriaBuilder怎么用?PHP TrackerManager::getCriteriaBuilder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TrackerManager
的用法示例。
在下文中一共展示了TrackerManager::getCriteriaBuilder方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getViewBuilder
/**
* Builds a new cross-tracker search view builder.
*
* TODO:
* - move to controller (this has nothing to do with routing)
*
* @param Codendi_Request $request
*
* @return Tracker_CrossSearch_ViewBuilder
*/
protected function getViewBuilder(Codendi_Request $request)
{
$form_element_factory = Tracker_FormElementFactory::instance();
$group_id = $request->get('group_id');
$user = $request->getCurrentUser();
$object_god = new TrackerManager();
$planning_trackers = $this->getPlanningFactory()->getPlanningTrackers($group_id, $user);
$art_link_field_ids = $form_element_factory->getArtifactLinkFieldsOfTrackers($planning_trackers);
return new Planning_ViewBuilder($form_element_factory, $object_god->getCrossSearch($art_link_field_ids), $object_god->getCriteriaBuilder($user, $planning_trackers));
}