PHP 클래스 GP_Project, GlotPress-WP

상속: extends GP_Thing
파일 보기 프로젝트 열기: GlotPress/GlotPress-WP 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$active
$description
$field_names
$id
$int_fields
$name
$non_updatable_attributes
$parent_project_id
$path
$slug
$source_url_template
$table_basename
$user_source_url_template

공개 메소드들

메소드 설명
_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.

메소드 상세

_compare_set_item() 공개 메소드

public _compare_set_item ( $set, $this_set )

after_create() 공개 메소드

Executes after creating a project.
부터: 1.0.0
public after_create ( ) : boolean
리턴 boolean

after_delete() 공개 메소드

Executes after deleting a project.
부터: 2.0.0
public after_delete ( ) : boolean
리턴 boolean

after_save() 공개 메소드

Executes after saving a project.
부터: 1.0.0
public after_save ( ) : boolean
리턴 boolean

by_path() 공개 메소드

Additional queries
public by_path ( $path )

copy_originals_from() 공개 메소드

public copy_originals_from ( $source_project_id )

copy_sets_and_translations_from() 공개 메소드

public copy_sets_and_translations_from ( $source_project_id )

delete() 공개 메소드

Deletes a project and all of sub projects, translations, translation sets, originals and glossaries.
부터: 2.0.0
public delete ( ) : boolean
리턴 boolean

duplicate_project_contents_from() 공개 메소드

public duplicate_project_contents_from ( $source_project )

inclusive_sub_projects() 공개 메소드

Gives an array of project objects starting from the current project children then its grand children etc
public inclusive_sub_projects ( ) : array
리턴 array

normalize_fields() 공개 메소드

Normalizes an array with key-value pairs representing a GP_Project object.
부터: 1.0.0
public normalize_fields ( array $args ) : array
$args array Arguments for a GP_Project object.
리턴 array Normalized arguments for a GP_Project object.

path_to_root() 공개 메소드

Gives an array of project objects starting from the current project then its parent, its parent and up to the root
public path_to_root ( ) : array
리턴 array

regenerate_paths() 공개 메소드

Regenrate the paths of all projects from its parents slugs
public regenerate_paths ( $parent_project_id = null )

restrict_fields() 공개 메소드

Sets restriction rules for fields.
부터: 1.0.0
public restrict_fields ( GP_Validation_Rules $rules )
$rules GP_Validation_Rules The validation rules instance.

set_difference_from() 공개 메소드

public set_difference_from ( $other_project )

source_url() 공개 메소드

public source_url ( $file, $line )

source_url_template() 공개 메소드

public source_url_template ( )

sub_projects() 공개 메소드

public sub_projects ( )

top_level() 공개 메소드

public top_level ( )

update_path() 공개 메소드

Updates this project's and its chidlren's paths, according to its current slug.
public update_path ( )

프로퍼티 상세

$active 공개적으로 프로퍼티

public $active

$description 공개적으로 프로퍼티

public $description

$field_names 공개적으로 프로퍼티

public $field_names

$id 공개적으로 프로퍼티

public $id

$int_fields 공개적으로 프로퍼티

public $int_fields

$name 공개적으로 프로퍼티

public $name

$non_updatable_attributes 공개적으로 프로퍼티

public $non_updatable_attributes

$parent_project_id 공개적으로 프로퍼티

public $parent_project_id

$path 공개적으로 프로퍼티

public $path

$slug 공개적으로 프로퍼티

public $slug

$source_url_template 공개적으로 프로퍼티

public $source_url_template

$table_basename 공개적으로 프로퍼티

public $table_basename

$user_source_url_template 공개적으로 프로퍼티

public $user_source_url_template