示例#1
0
 /**
  * Load the branch information into the form.
  * This is called once for each branch enabled on the attached object.
  * @param JOB_BRANCH_INFO $branch_info
  * @access private
  */
 protected function _load_from_branch_info($branch_info)
 {
     parent::_load_from_branch_info($branch_info);
     $id = $branch_info->branch_id;
     $this->set_enabled("branch_{$id}_status", true);
     $this->set_value("branch_{$id}_status", $branch_info->status);
     $this->set_enabled("branch_{$id}_priority", true);
     $this->set_value("branch_{$id}_priority", $branch_info->priority);
 }