Class GP_Validator_Permission

Description

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

GP_Thing
   |
   --GP_Permission
      |
      --GP_Validator_Permission
Variable Summary
Method Summary
void by_project_id ( $project_id)
void object_id ( $project_id,  $locale_slug, [ $set_slug = 'default'])
void prepare_fields_for_save ( $args)
void project_id_locale_slug_set_slug ( $object_id)
void restrict_fields ( $permission)
void set_fields ( $db_object)
Variables
mixed $field_names = array( 'id', 'user_id', 'action', 'object_type', 'object_id' ) (line 5)

Redefinition of:
GP_Permission::$field_names
mixed $non_db_field_names = array( 'project_id', 'locale_slug', 'set_slug' ) (line 6)

Redefinition of:
GP_Thing::$non_db_field_names
mixed $non_updatable_attributes = array( 'id', ) (line 7)

Redefinition of:
GP_Permission::$non_updatable_attributes
mixed $table_basename = 'permissions' (line 4)

Redefinition of:
GP_Permission::$table_basename

Inherited Variables

Inherited from GP_Thing

GP_Thing::$errors
GP_Thing::$map_results
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 45)
void by_project_id ( $project_id)
  • $project_id
object_id (line 41)
void object_id ( $project_id,  $locale_slug, [ $set_slug = 'default'])
  • $project_id
  • $locale_slug
  • $set_slug
prepare_fields_for_save (line 26)
void prepare_fields_for_save ( $args)
  • $args

Redefinition of:
GP_Thing::prepare_fields_for_save()
Prepares for enetering the database an array with key-value pairs, preresenting a GP_Thing object.
project_id_locale_slug_set_slug (line 37)
void project_id_locale_slug_set_slug ( $object_id)
  • $object_id
restrict_fields (line 9)
void restrict_fields ( $permission)
  • $permission

Redefinition of:
GP_Thing::restrict_fields()
set_fields (line 17)
void set_fields ( $db_object)
  • $db_object

Redefinition of:
GP_Thing::set_fields()

Inherited Methods

Inherited From GP_Permission

GP_Permission::normalize_fields()

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