| [ Index ] |
PHP Cross Reference of GlotPress |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 405 lines (12 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
GP_Thing:: (43 methods):
__construct()
get_static()
has_static()
set_static()
__call()
all()
reload()
one()
value()
prepare()
many()
find_many()
find_one()
find()
query()
create()
create_and_select()
update()
get()
save()
delete()
delete_all()
set_fields()
normalize_fields()
prepare_fields_for_save()
now_in_mysql_format()
prepare_fields_for_create()
coerce()
map()
after_create()
after_save()
sql_condition_from_php_value()
sql_from_conditions()
sql_from_order()
select_all_from_conditions_and_order()
restrict_fields()
validate()
force_false_to_null()
fields()
sql_limit_for_paging()
found_rows()
like_escape_printf()
apply_default_conditions()
| __construct( $fields = array() X-Ref |
| No description |
| get_static( $name, $default = null ) X-Ref |
| No description |
| has_static( $name ) X-Ref |
| No description |
| set_static( $name, $value ) X-Ref |
| No description |
| __call( $name, $args ) X-Ref |
| No description |
| all( $order = null ) X-Ref |
| Retrieves all rows from this table |
| reload() X-Ref |
| Reloads the object data from the database, based on its id |
| one() X-Ref |
| Retrieves a single row from this table For parameters description see BPDB::prepare() return: mixed an object, containing the selected row or false on error |
| value() X-Ref |
| Retrieves a single value from this table For parameters description see BPDB::prepare() return: scalar the result of the query or false on error |
| prepare( $args ) X-Ref |
| No description |
| many() X-Ref |
| Retrieves multiple rows from this table For parameters description see BPDB::prepare() return: mixed an object, containing the selected row or false on error |
| find_many( $conditions, $order = null ) X-Ref |
| No description |
| find_one( $conditions, $order = null ) X-Ref |
| No description |
| find( $conditions, $order = null ) X-Ref |
| No description |
| query() X-Ref |
| No description |
| create( $args ) X-Ref |
| Inserts a new row param: $args array associative array with fields as keys and values as values return: mixed the object corresponding to the inserted row or false on error |
| create_and_select( $args ) X-Ref |
| Inserts a record and then selects it back based on the id param: $args array see create() return: mixed the selected object or false on error |
| update( $data, $where = null ) X-Ref |
| Updates a single row param: $data array associative array with fields as keys and updated values as values |
| get( $thing_or_id ) X-Ref |
| No description |
| save( $args = null ) X-Ref |
| No description |
| delete() X-Ref |
| No description |
| delete_all( $where = null ) X-Ref |
| No description |
| set_fields( $db_object ) X-Ref |
| No description |
| normalize_fields( $args ) X-Ref |
| Normalizes an array with key-value pairs representing a GP_Thing object. |
| prepare_fields_for_save( $args ) X-Ref |
| Prepares for enetering the database an array with key-value pairs, preresenting a GP_Thing object. |
| now_in_mysql_format() X-Ref |
| No description |
| prepare_fields_for_create( $args ) X-Ref |
| No description |
| coerce( $thing ) X-Ref |
| No description |
| map( $results ) X-Ref |
| No description |
| after_create() X-Ref |
| No description |
| after_save() X-Ref |
| No description |
| sql_condition_from_php_value( $php_value ) X-Ref |
| No description |
| sql_from_conditions( $conditions ) X-Ref |
| No description |
| sql_from_order( $order_by, $order_how = '' ) X-Ref |
| No description |
| select_all_from_conditions_and_order( $conditions, $order = null ) X-Ref |
| No description |
| restrict_fields( $thing ) X-Ref |
| No description |
| validate() X-Ref |
| No description |
| force_false_to_null( $value ) X-Ref |
| No description |
| fields() X-Ref |
| No description |
| sql_limit_for_paging( $page, $per_page = null ) X-Ref |
| No description |
| found_rows() X-Ref |
| No description |
| like_escape_printf( $s ) X-Ref |
| No description |
| apply_default_conditions( $conditions_str ) X-Ref |
| No description |
| Generated: Thu May 24 03:59:35 2012 | Hosted by follow the white rabbit. |