Class GP_Translation_Set

Description

Located in /gp-includes/things/translation-set.php (line 2)

GP_Thing
   |
   --GP_Translation_Set
Variable Summary
Method Summary
void all_count ()
void by_project_id ( $project_id)
void by_project_id_slug_and_locale ( $project_id,  $slug,  $locale_slug)
void copy_translations_from ( $source_translation_set_id)
void current_count ()
void import ( $translations)
void name_with_locale ([ $separator = '→'])
void restrict_fields ( $set)
void waiting_count ()
void warnings_count ()
Variables
mixed $field_names = array( 'id', 'name', 'slug', 'project_id', 'locale' ) (line 5)

Redefinition of:
GP_Thing::$field_names
mixed $non_updatable_attributes = array( 'id' ) (line 6)
mixed $table_basename = 'translation_sets' (line 4)

Inherited Variables

Inherited from GP_Thing

GP_Thing::$errors
GP_Thing::$map_results
GP_Thing::$non_db_field_names
GP_Thing::$per_page
GP_Thing::$static
GP_Thing::$static_by_class
GP_Thing::$table
GP_Thing::$validation_rules
GP_Thing::$validation_rules_by_class
Methods
all_count (line 98)
void all_count ()
by_project_id (line 28)
void by_project_id ( $project_id)
  • $project_id
by_project_id_slug_and_locale (line 22)
void by_project_id_slug_and_locale ( $project_id,  $slug,  $locale_slug)
  • $project_id
  • $slug
  • $locale_slug
copy_translations_from (line 144)

Copies translations from a translation set to the current one

This function doesn't merge then, just copies unconditionally. If a translation already exists, it will be duplicated.

void copy_translations_from ( $source_translation_set_id)
  • $source_translation_set_id
current_count (line 88)
void current_count ()
import (line 34)
void import ( $translations)
  • $translations
name_with_locale (line 15)
void name_with_locale ([ $separator = '→'])
  • $separator
percent_translated (line 157)
void percent_translated ()
restrict_fields (line 8)
void restrict_fields ( $set)
  • $set

Redefinition of:
GP_Thing::restrict_fields()
untranslated_count (line 83)
void untranslated_count ()
update_status_breakdown (line 104)
void update_status_breakdown ()
waiting_count (line 78)
void waiting_count ()
warnings_count (line 93)
void warnings_count ()

Inherited Methods

Inherited From GP_Thing

GP_Thing::__construct()
GP_Thing::after_create()
GP_Thing::after_save()
GP_Thing::all()
GP_Thing::apply_default_conditions()
GP_Thing::coerce()
GP_Thing::create()
GP_Thing::create_and_select()
GP_Thing::delete()
GP_Thing::delete_all()
GP_Thing::fields()
GP_Thing::find()
GP_Thing::find_many()
GP_Thing::find_one()
GP_Thing::force_false_to_null()
GP_Thing::found_rows()
GP_Thing::get()
GP_Thing::get_static()
GP_Thing::has_static()
GP_Thing::like_escape_printf()
GP_Thing::many()
GP_Thing::map()
GP_Thing::normalize_fields()
GP_Thing::now_in_mysql_format()
GP_Thing::one()
GP_Thing::prepare()
GP_Thing::prepare_fields_for_create()
GP_Thing::prepare_fields_for_save()
GP_Thing::query()
GP_Thing::reload()
GP_Thing::restrict_fields()
GP_Thing::save()
GP_Thing::select_all_from_conditions_and_order()
GP_Thing::set_fields()
GP_Thing::set_static()
GP_Thing::sql_condition_from_php_value()
GP_Thing::sql_from_conditions()
GP_Thing::sql_from_order()
GP_Thing::sql_limit_for_paging()
GP_Thing::update()
GP_Thing::validate()
GP_Thing::value()
GP_Thing::__call()

Documentation generated on Fri, 18 May 2012 01:46:11 +0100 by phpDocumentor 1.4.3