本文整理匯總了PHP中Tracker_FormElement_Field::saveNewChangeset方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tracker_FormElement_Field::saveNewChangeset方法的具體用法?PHP Tracker_FormElement_Field::saveNewChangeset怎麽用?PHP Tracker_FormElement_Field::saveNewChangeset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tracker_FormElement_Field
的用法示例。
在下文中一共展示了Tracker_FormElement_Field::saveNewChangeset方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: saveNewChangeset
/**
* Save the value submitted by the user in the new changeset
*
* @param Tracker_Artifact $artifact The artifact
* @param Tracker_Artifact_Changeset $old_changeset The old changeset. null if it is the first one
* @param int $new_changeset_id The id of the new changeset
* @param mixed $submitted_value The value submitted by the user
* @param boolean $is_submission true if artifact submission, false if artifact update
*
* @return bool true if success
*/
public function saveNewChangeset(Tracker_Artifact $artifact, $old_changeset, $new_changeset_id, $submitted_value, User $submitter, $is_submission = false, $bypass_permissions = false)
{
$submitted_value = $this->updateLinkingDirection($artifact, $old_changeset, $submitted_value, $submitter);
return parent::saveNewChangeset($artifact, $old_changeset, $new_changeset_id, $submitted_value, $submitter, $is_submission, $bypass_permissions);
}