Function Module_purchase->_wrap

Definitions

site/pages/modules/purchase.php

  • Wrap-up so as to remove redundancy in templates.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$content Tempcode No No required parameter N/A N/A To wrap
$title Tempcode No No required parameter N/A N/A The title to use
$url ?mixed No No Null N/A N/A URL (null: no next URL)
$js_function_calls array No No [] N/A N/A Array of JavaScript function calls to use
$get boolean No No False N/A N/A Whether it is a GET form
$submit_name ?Tempcode No No Null N/A N/A Submit button label to use (null: default)
$icon string No No buttons/proceed N/A N/A CSS icon label to use

Returns

  • Wrapped
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Wrap-up so as to remove redundancy in templates.
 *
 * @param  Tempcode $content To wrap
 * @param  Tempcode $title The title to use
 * @param  ?mixed $url URL (null: no next URL)
 * @param  array $js_function_calls Array of JavaScript function calls to use
 * @param  boolean $get Whether it is a GET form
 * @param  ?Tempcode $submit_name Submit button label to use (null: default)
 * @param  string $icon CSS icon label to use
 * @return Tempcode Wrapped
 */

protected function _wrap(object $content, object $title, $url = null, array $js_function_calls = [], bool $get = false, ?object $submit_name = null, string $icon = 'buttons/proceed') : object