Function __global->already_in_log

Definitions

sources/global4.php

  • Find if an action already logged.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type ID_TEXT No No required parameter N/A N/A The type of activity just carried out (a language string codename)
$a ?SHORT_TEXT No No Null N/A N/A The most important parameter of the activity (e.g. ID) (null: none)
$b ?SHORT_TEXT No No Null N/A N/A A secondary (perhaps, human readable) parameter of the activity (e.g. caption) (null: none)

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if an action already logged.
 *
 * @param  ID_TEXT $type The type of activity just carried out (a language string codename)
 * @param  ?SHORT_TEXT $a The most important parameter of the activity (e.g. ID) (null: none)
 * @param  ?SHORT_TEXT $b A secondary (perhaps, human readable) parameter of the activity (e.g. caption) (null: none)
 * @return boolean Whether it is
 */

function already_in_log(string $type, ?string $a = null, ?string $b = null) : bool