當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tracker_FormElement_Field::getId方法代碼示例

本文整理匯總了PHP中Tracker_FormElement_Field::getId方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracker_FormElement_Field::getId方法的具體用法?PHP Tracker_FormElement_Field::getId怎麽用?PHP Tracker_FormElement_Field::getId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Tracker_FormElement_Field的用法示例。


在下文中一共展示了Tracker_FormElement_Field::getId方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getValue

 /**
  * Return the value of a field in the current changeset
  *
  * @param Tracker_FormElement_Field $field The field
  *
  * @return Tracker_Artifact_ChangesetValue, or null if not found
  */
 public function getValue(Tracker_FormElement_Field $field)
 {
     $values = $this->getValues();
     if (isset($values[$field->getId()])) {
         return $values[$field->getId()];
     }
     return null;
 }
開發者ID:ndjido,項目名稱:tuleap,代碼行數:15,代碼來源:Tracker_Artifact_Changeset.class.php

示例2: getFieldId

 /**
  * The Id of the (text) field used for initial_effort semantic
  *
  * @return int The Id of the (numeric) field used for initial_effort semantic, or 0 if no field
  */
 public function getFieldId()
 {
     if ($this->initial_effort_field) {
         return $this->initial_effort_field->getId();
     } else {
         return 0;
     }
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:13,代碼來源:Semantic_InitialEffort.class.php

示例3: getMappings

 /**
  * @return array of Cardwall_OnTop_Config_ValueMapping
  */
 public function getMappings(Tracker $tracker, Tracker $mapping_tracker, Tracker_FormElement_Field $mapping_field)
 {
     // Why does we return a collection indexed on value_id in the case of freestyle mappings, and a collection
     // indexed on column_id in the case of status mappings @see getStatusMappings?????????
     // Shouldn't we let TrackerMapping do the indexing so that code in TrackerMapping might exploit that?
     $mappings = $this->getMappingFieldValuesIndexedByTracker($tracker);
     if (isset($mappings[$mapping_tracker->getId()][$mapping_field->getId()])) {
         return $mappings[$mapping_tracker->getId()][$mapping_field->getId()];
     }
     return array();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:14,代碼來源:ValueMappingFactory.class.php

示例4: getTargetFieldId

 /**
  *
  * @return int
  */
 public function getTargetFieldId()
 {
     if ($this->target_field_obj instanceof Tracker_FormElement_Field) {
         return $this->target_field_obj->getId();
     }
     return $this->target_field;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:11,代碼來源:Tracker_Rule.class.php

示例5: getFullRESTRepresentation

 protected function getFullRESTRepresentation($value)
 {
     $classname_with_namespace = 'Tuleap\\Tracker\\REST\\Artifact\\ArtifactFieldValueFullRepresentation';
     $artifact_field_value_full_representation = new $classname_with_namespace();
     $artifact_field_value_full_representation->build($this->field->getId(), Tracker_FormElementFactory::instance()->getType($this->field), $this->field->getLabel(), $value);
     return $artifact_field_value_full_representation;
 }
開發者ID:superlinger,項目名稱:tuleap,代碼行數:7,代碼來源:Tracker_Artifact_ChangesetValue.class.php

示例6: getStaticListDataValue

 private function getStaticListDataValue(Tracker_FormElement_Field $field, $value)
 {
     if (isset($value['format']) && (string) $value['format'] === self::FORMAT_ID) {
         return $this->xml_fields_mapping->getNewValueId((int) $value);
     }
     $result = $this->static_value_dao->searchValueByLabel($field->getId(), (string) $value);
     $row = $result->getRow();
     return (int) $row['id'];
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:9,代碼來源:XMLImportFieldStrategyList.class.php

示例7: getLastChangesetWithFieldValue

 /**
  * @return \Tracker_Artifact_Changeset|null
  */
 public function getLastChangesetWithFieldValue(Tracker_Artifact $artifact, Tracker_FormElement_Field $field)
 {
     $dar = $this->dao->searchLastChangesetAndValueForArtifactField($artifact->getId(), $field->getId());
     if ($dar) {
         $row = $dar->getRow();
         $changeset = $this->getChangesetFromRow($artifact, $row);
         $value = $field->getChangesetValue($changeset, $row['value_id'], $row['has_changed']);
         $changeset->setFieldValue($field, $value);
         return $changeset;
     }
     return null;
 }
開發者ID:ansarbek,項目名稱:tuleap,代碼行數:15,代碼來源:Tracker_Artifact_ChangesetFactory.class.php

示例8: isRequiredFieldsValid

 /**
  * @return bool
  */
 private function isRequiredFieldsValid(Tracker $tracker, Tracker_FormElement_Field $title_field, Tracker_FormElement_Field $description_field)
 {
     $is_required_fields_valid = true;
     $form_elements = $tracker->getFormElementFields();
     reset($form_elements);
     while ($is_required_fields_valid && (list(, $form_element) = each($form_elements))) {
         if ($form_element->isRequired()) {
             $is_required_fields_valid = $form_element->getId() === $title_field->getId() || $form_element->getId() === $description_field->getId();
         }
     }
     return $is_required_fields_valid;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:15,代碼來源:Tracker_ArtifactByEmailStatus.class.php

示例9: pushDefaultValueInSubmittedValues

 private function pushDefaultValueInSubmittedValues(Tracker_FormElement_Field $field, array &$fields_data)
 {
     $fields_data[$field->getId()] = $field->getDefaultValue();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:4,代碼來源:InitialChangesetCreator.class.php

示例10: getFieldValue

 private function getFieldValue($fields_data, Tracker_Artifact $artifact, Tracker_FormElement_Field $field)
 {
     $field_id = $field->getId();
     if (isset($fields_data[$field_id])) {
         return $fields_data[$field_id];
     }
     return $this->getFieldValueFromLastChangeset($artifact, $field);
 }
開發者ID:rinodung,項目名稱:tuleap,代碼行數:8,代碼來源:FieldNotEmpty.class.php

示例11: isFieldUsedInConditions

 /** @return bool */
 public function isFieldUsedInConditions(Tracker_FormElement_Field $field)
 {
     return $this->dao->isFieldUsed($field->getId());
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:5,代碼來源:Factory.class.php

示例12: bypassPermissions

 /**
  * Get the value of bypass_permissions
  *
  * @param Tracker_FormElement_Field $field
  *
  * @return boolean
  */
 public function bypassPermissions(Tracker_FormElement_Field $field)
 {
     return $this->getFieldId() == $field->getId() && $this->bypass_permissions;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:11,代碼來源:Transition_PostAction_Field.class.php

示例13: isFieldSubmitted

 /**
  * @return bool
  */
 protected function isFieldSubmitted(Tracker_FormElement_Field $field, array $fields_data)
 {
     return isset($fields_data[$field->getId()]);
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:7,代碼來源:ChangesetCreatorBase.class.php

示例14: setField

 /**
  * Set field
  *
  * @param Tracker_FormElement_Field $field Field
  */
 public function setField(Tracker_FormElement_Field $field)
 {
     $this->field = $field;
     $this->field_id = $field->getId();
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:10,代碼來源:Workflow.class.php

示例15: isWorkflowField

 /**
  * Say if a field is used to define a workflow
  *
  * @param Tracker_FormElement_Field $field The field
  *
  * @return bool
  */
 public function isWorkflowField(Tracker_FormElement_Field $field)
 {
     $workflow = $this->getWorkflowByTrackerId($field->getTracker()->getId());
     if ($workflow) {
         return $field->getId() == $workflow->getFieldId();
     }
     return false;
 }
開發者ID:pombredanne,項目名稱:tuleap,代碼行數:15,代碼來源:WorkflowFactory.class.php


注:本文中的Tracker_FormElement_Field::getId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。