original_string: public static function approve_plan($id) {
          $params = self::validate_parameters(self::approve_plan_parameters(), array(
              'id' => $id,
          ));
  
          $plan = api::read_plan($id);
          self::validate_context($plan->get_context());
  
          return api::approve_plan($plan);
      }
code: public static function approve_plan($id) {
          $params = self::validate_parameters(self::approve_plan_parameters(), array(
              'id' => $id,
          ));
  
          $plan = api::read_plan($id);
          self::validate_context($plan->get_context());
  
          return api::approve_plan($plan);
      }
code_tokens: public static function approve_plan ( $ id ) { $ params = self :: validate_parameters ( self :: approve_plan_parameters ( ) , array ( 'id' => $ id , ) ) ; $ plan = api :: read_plan ( $ id ) ; self :: validate_context ( $ plan -> get_context ( ) ) ; return api :: approve_plan ( $ plan ) ; }
docstring: External function approve_plan.
  
  @param int $id The plan ID.
  @return boolean
docstring_tokens: External function approve_plan .