Function __global->statistical_update_model

Definitions

sources/global3.php

  • See how much to implement a view count, based on smart metrics.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$table string No No required parameter N/A N/A Table to update in
$view_count integer No No required parameter N/A N/A Current view count

Returns

  • How much to increment the view count by
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * See how much to implement a view count, based on smart metrics.
 *
 * @param  string $table Table to update in
 * @param  integer $view_count Current view count
 * @return integer How much to increment the view count by
 */

function statistical_update_model(string $table, int $view_count) : int