当前位置: 首页>>代码示例>>PHP>>正文


PHP Tracker_FormElementFactory::getFormElementByName方法代码示例

本文整理汇总了PHP中Tracker_FormElementFactory::getFormElementByName方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracker_FormElementFactory::getFormElementByName方法的具体用法?PHP Tracker_FormElementFactory::getFormElementByName怎么用?PHP Tracker_FormElementFactory::getFormElementByName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tracker_FormElementFactory的用法示例。


在下文中一共展示了Tracker_FormElementFactory::getFormElementByName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getCriteria

 public function getCriteria()
 {
     $rank = 0;
     foreach ($this->soap_criteria as $key => $value) {
         $is_advanced = false;
         if ($formelement = $this->formelement_factory->getFormElementByName($this->getTracker()->getId(), $value->field_name)) {
             if ($formelement->userCanRead($this->current_user)) {
                 $criteria = new Tracker_Report_Criteria(0, $this, $formelement, $rank, $is_advanced);
                 $formelement->setCriteriaValueFromSOAP($criteria, $value->value);
                 $this->criteria[$formelement->getId()] = $criteria;
                 $rank++;
             }
         }
     }
     return $this->criteria;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:16,代码来源:Tracker_Report_SOAP.class.php

示例2: createUserStory

    private function createUserStory(PFUser $user, $field_i_want_to_value, $field_status_value) {
        $fields_data = array(
            $this->tracker_formelement_factory->getFormElementByName(self::USER_STORIES_TRACKER_ID, 'i_want_to')->getId() => $field_i_want_to_value,
            $this->tracker_formelement_factory->getFormElementByName(self::USER_STORIES_TRACKER_ID, 'status')->getId()  => $field_status_value
        );

        $this->tracker_artifact_factory->createArtifact(
            $this->tracker_factory->getTrackerById(self::USER_STORIES_TRACKER_ID),
            $fields_data,
            $user,
            '',
            false
        );
    }
开发者ID:rinodung,项目名称:tuleap,代码行数:14,代码来源:TestDataBuilder.php

示例3: getCriteria

 public function getCriteria()
 {
     $rank = 0;
     $tracker_id = $this->getTracker()->getId();
     foreach ($this->rest_criteria as $field_identifier => $criterion) {
         $formelement = $this->formelement_factory->getFormElementById($field_identifier);
         if (!$formelement) {
             $formelement = $this->formelement_factory->getFormElementByName($tracker_id, $field_identifier);
         }
         if ($formelement && $formelement->userCanRead($this->current_user)) {
             $this->addCriterionToFormElement($formelement, $criterion, $rank);
             $rank++;
         }
     }
     return $this->criteria;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:16,代码来源:Tracker_Report_REST.class.php

示例4: getPlanningTrackerDurationField

 /**
  * @return Tracker_FormElement_Field | null
  */
 private function getPlanningTrackerDurationField(Tracker $planning_tracker)
 {
     return $this->form_element_factory->getFormElementByName($planning_tracker->getId(), Planning_Milestone::DURATION_FIELD_NAME);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:7,代码来源:PlanningFactory.class.php


注:本文中的Tracker_FormElementFactory::getFormElementByName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。