[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/classes/task/ -> adhoc_task.php (summary)

Adhoc task abstract class. All background tasks should extend this class.

Copyright: 2013 Damyon Wiese
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 92 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  set_id()
  get_id()
  set_custom_data()
  set_custom_data_as_string()
  get_custom_data()
  get_custom_data_as_string()

Functions
Functions that are not part of a class:

set_id($id)   X-Ref
Setter for $id.

param: int|null $id

get_id()   X-Ref
Getter for $id.

return: int|null $id

set_custom_data($customdata)   X-Ref
Setter for $customdata.

param: mixed $customdata (anything that can be handled by json_encode)

set_custom_data_as_string($customdata)   X-Ref
Alternate setter for $customdata. Expects the data as a json_encoded string.

param: string $customdata json_encoded string

get_custom_data()   X-Ref
Getter for $customdata.

return: mixed (anything that can be handled by json_decode).

get_custom_data_as_string()   X-Ref
Alternate getter for $customdata.

return: string this is the raw json encoded version.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1