[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/backup/util/plan/ -> base_plan.class.php (summary)

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 218 lines (7 kb)
Included or required:0 times
Referenced: 2 times
Includes or requires: 0 files

Defines 1 class

base_plan_exception:: (1 method):
  __construct()

Defines 1 function

  __construct()
  get_name()
  add_task()
  get_tasks()
  add_result()
  get_results()
  get_settings()
  get_setting()
  setting_exists()
  is_checksum_correct()
  calculate_checksum()
  execute()
  destroy()

Class: base_plan_exception  - X-Ref

__construct($errorcode, $a=NULL, $debuginfo=null)   X-Ref
No description

Functions
Functions that are not part of a class:

__construct($name)   X-Ref
Constructor - instantiates one object of this class


get_name()   X-Ref
No description

add_task($task)   X-Ref
No description

get_tasks()   X-Ref
No description

add_result($result)   X-Ref
Add the passed info to the plan results

At the moment we expect an associative array structure to be merged into
the current results. In the future, some sort of base_result class may
be introduced.

param: array $result associative array describing a result of a task/step

get_results()   X-Ref
Return the results collected via {@link self::add_result()} method

return: array

get_settings()   X-Ref
No description

get_setting($name)   X-Ref
return one setting by name, useful to request root/course settings
that are, by definition, unique by name.

param: string $name name of the setting

setting_exists($name)   X-Ref
Wrapper over @get_setting() that returns if the requested setting exists or no


is_checksum_correct($checksum)   X-Ref
Function responsible for building the tasks of any plan
with their corresponding settings
(must set the $built property to true)


calculate_checksum()   X-Ref
No description

execute()   X-Ref
Function responsible for executing the tasks of any plan


destroy()   X-Ref
Destroy all circular references. It helps PHP 5.2 a lot!




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