GP_Thing
__construct
([ $fields = array()])
void
after_create
()
Redefined in descendants as:
void
after_save
()
Redefined in descendants as:
Retrieves all rows from this table
void
all
([ $order = null])
void
apply_default_conditions
( $conditions_str)
Inserts a new row
mixed
create
($args $args)
-
$args
$args: array associative array with fields as keys and values as values
Redefined in descendants as:
Inserts a record and then selects it back based on the id
mixed
create_and_select
($args $args)
-
$args
$args: array see create()
void
delete_all
([ $where = null])
void
find
( $conditions, [ $order = null])
void
find_many
( $conditions, [ $order = null])
void
find_one
( $conditions, [ $order = null])
void
force_false_to_null
( $value)
void
get
( $thing_or_id)
Redefined in descendants as:
void
get_static
( $name, [ $default = null])
void
like_escape_printf
( $s)
Retrieves multiple rows from this table
For parameters description see BPDB::prepare()
mixed
many
()
Normalizes an array with key-value pairs representing a GP_Thing object.
void
normalize_fields
( $args)
Redefined in descendants as:
void
now_in_mysql_format
()
Retrieves a single row from this table
For parameters description see BPDB::prepare()
mixed
one
()
void
prepare_fields_for_create
( $args)
Prepares for enetering the database an array with key-value pairs, preresenting a GP_Thing object.
void
prepare_fields_for_save
( $args)
Redefined in descendants as:
Reloads the object data from the database, based on its id
void
reload
()
void
restrict_fields
( $thing)
Redefined in descendants as:
void
save
([ $args = null])
void
select_all_from_conditions_and_order
( $conditions, [ $order = null])
void
set_fields
( $db_object)
Redefined in descendants as:
void
set_static
( $name, $value)
void
sql_condition_from_php_value
( $php_value)
void
sql_from_conditions
( $conditions)
void
sql_from_order
( $order_by, [ $order_how = ''])
void
sql_limit_for_paging
( $page, [ $per_page = null])
Updates a single row
void
update
($data $data, [ $where = null])
-
$data
$data: array associative array with fields as keys and updated values as values
-
$where
Redefined in descendants as:
Retrieves a single value from this table
For parameters description see BPDB::prepare()
scalar
value
()
void
__call
( $name, $args)