Class GP_Original

Description

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

GP_Thing
   |
   --GP_Original
Direct descendents
Class Description
MockOriginal
Variable Summary
Method Summary
void by_project_id ( $project_id)
void by_project_id_and_entry ( $project_id,  $entry, [ $status = null])
void count_by_project_id ( $project_id)
void import_for_project ( $project,  $translations)
void normalize_fields ( $args)
void restrict_fields ( $original)
void should_be_updated_with ( $data, [ $original = null])
Variables
static mixed $count_cache_group = 'active_originals_count_by_project_id' (line 9)
static mixed $priorities = array( '-2' => 'hidden', '-1' => 'low', '0' => 'normal', '1' => 'high' ) (line 8)
mixed $field_names = array( 'id', 'project_id', 'context', 'singular', 'plural', 'references', 'comment', 'status', 'priority', 'date_added' ) (line 5)

Redefinition of:
GP_Thing::$field_names
mixed $non_updatable_attributes = array( 'id', 'path' ) (line 6)
mixed $table_basename = 'originals' (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
by_project_id (line 29)
void by_project_id ( $project_id)
  • $project_id
by_project_id_and_entry (line 43)
void by_project_id_and_entry ( $project_id,  $entry, [ $status = null])
  • $project_id
  • $entry
  • $status
count_by_project_id (line 33)
void count_by_project_id ( $project_id)
  • $project_id
import_for_project (line 56)
void import_for_project ( $project,  $translations)
  • $project
  • $translations
normalize_fields (line 19)
void normalize_fields ( $args)
  • $args

Redefinition of:
GP_Thing::normalize_fields()
Normalizes an array with key-value pairs representing a GP_Thing object.
restrict_fields (line 11)
void restrict_fields ( $original)
  • $original

Redefinition of:
GP_Thing::restrict_fields()
should_be_updated_with (line 93)
void should_be_updated_with ( $data, [ $original = null])
  • $data
  • $original

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:03 +0100 by phpDocumentor 1.4.3