| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
(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: | 361 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
backup_nested_element:: (25 methods):
__construct()
process()
add_log()
add_result()
get_logs()
get_results()
set_source_array()
set_source_table()
set_source_sql()
set_source_alias()
annotate_files()
annotate_ids()
get_file_annotations()
get_source_array()
get_source_table()
get_source_table_sortby()
get_source_sql()
get_counter()
fill_values()
convert_table_params()
convert_sql_params()
find_element()
get_new_attribute()
get_new_final_element()
get_iterator()
Class: backup_nested_element - X-Ref
Instantiable class representing one nestable element (non final) piece of information on backup| __construct($name, $attributes = null, $final_elements = null) X-Ref |
| Constructor - instantiates one backup_nested_element, specifying its basic info. param: string $name name of the element param: array $attributes attributes this element will handle (optional, defaults to null) param: array $final_elements this element will handle (optional, defaults to null) |
| process($processor) X-Ref |
| Process the nested element param: object $processor the processor return: void |
| add_log($message, $level, $a = null, $depth = null, $display = false) X-Ref |
| Saves a log message to an array param: string $message to add to the logs param: int $level level of importance {@link backup::LOG_DEBUG} and other constants param: mixed $a to be included in $message param: int $depth of the message param: display $bool supporting translation via get_string() if true return: void |
| add_result($result) X-Ref |
| Saves the results to an array param: array $result associative array return: void |
| get_logs() X-Ref |
| Returns the logs return: array of log objects |
| get_results() X-Ref |
| Returns the results return: associative array of results |
| set_source_array($arr) X-Ref |
| No description |
| set_source_table($table, $params, $sortby = null) X-Ref |
| No description |
| set_source_sql($sql, $params) X-Ref |
| No description |
| set_source_alias($dbname, $finalelementname) X-Ref |
| No description |
| annotate_files($component, $filearea, $elementname, $filesctxid = null) X-Ref |
| No description |
| annotate_ids($itemname, $elementname) X-Ref |
| No description |
| get_file_annotations() X-Ref |
| Returns one array containing the element in the |
| get_source_array() X-Ref |
| No description |
| get_source_table() X-Ref |
| No description |
| get_source_table_sortby() X-Ref |
| No description |
| get_source_sql() X-Ref |
| No description |
| get_counter() X-Ref |
| No description |
| fill_values($values) X-Ref |
| Simple filler that, matching by name, will fill both attributes and final elements depending of this nested element, debugging info about non-matching elements and/or elements present in both places. Accept both arrays and objects. |
| convert_table_params($params) X-Ref |
| No description |
| convert_sql_params($params) X-Ref |
| No description |
| find_element($param) X-Ref |
| No description |
| get_new_attribute($name) X-Ref |
| Returns one instace of the @base_attribute class to work with when attributes are added simply by name |
| get_new_final_element($name) X-Ref |
| Returns one instace of the @final_element class to work with when final_elements are added simply by name |
| get_iterator($processor) X-Ref |
| Returns one PHP iterator over each "ocurrence" of this nested element (array or DB recordset). Delegated to backup_structure_dbops class |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |