Метод |
Описание |
|
_compare_set_item ( $set, $this_set ) |
|
|
after_create ( ) : boolean |
Executes after creating a project. |
|
after_delete ( ) : boolean |
Executes after deleting a project. |
|
after_save ( ) : boolean |
Executes after saving a project. |
|
by_path ( $path ) |
Additional queries |
|
copy_originals_from ( $source_project_id ) |
|
|
copy_sets_and_translations_from ( $source_project_id ) |
|
|
delete ( ) : boolean |
Deletes a project and all of sub projects, translations, translation sets, originals and glossaries. |
|
duplicate_project_contents_from ( $source_project ) |
|
|
inclusive_sub_projects ( ) : array |
Gives an array of project objects starting from the current project children
then its grand children etc |
|
normalize_fields ( array $args ) : array |
Normalizes an array with key-value pairs representing
a GP_Project object. |
|
path_to_root ( ) : array |
Gives an array of project objects starting from the current project
then its parent, its parent and up to the root |
|
regenerate_paths ( $parent_project_id = null ) |
Regenrate the paths of all projects from its parents slugs |
|
restrict_fields ( GP_Validation_Rules $rules ) |
Sets restriction rules for fields. |
|
set_difference_from ( $other_project ) |
|
|
source_url ( $file, $line ) |
|
|
source_url_template ( ) |
|
|
sub_projects ( ) |
|
|
top_level ( ) |
|
|
update_path ( ) |
Updates this project's and its chidlren's paths, according to its current slug. |
|