Property | Type | Description | |
---|---|---|---|
$fields | |||
$newfields | Holds field values from db | ||
$unsetfields | Holds updated field values to commit to db |
Method | Description | |
---|---|---|
__construct ( array $paramarray = [] ) | constructor __construct Constructor for the QueryRecord class. | |
__get ( string $name ) : mixed | function __get Handles getting virtual properties for this class | |
__isset ( string $name ) : boolean | Magic isset for QueryRecord, returns whether a property value is set. | |
__set ( string $name, mixed $value ) : mixed | function __set Handles setting virtual properties for this class | |
delete ( ) | This is the public interface that deletes a record | |
exclude_fields ( mixed $fields ) | Registers a (list of) fields(s) as being managed exclusively by the database. | |
get_raw_field ( string $name ) : mixed | A field accessor that doesn't filter, for use in plugins that filter field values | |
get_url_args ( ) : array | Returns an array with the current field settings | |
insert ( ) | This is the public interface that inserts a record | |
jsonSerialize ( ) : string | Implements JsonSerializable, only available in PHP 5.4 :( | |
list_excluded_fields ( ) : array | returns an array of fields that should not be included in any database insert operation | |
modify ( $paramarray = [] ) | This is the public interface to update a record with an array | |
to_array ( ) : array | function to_array Returns an array with the current field settings | |
to_json ( ) : string | Convert record data to json Returns a string with the current field values in JSON format | |
update ( ) | This is the public interface that updates a record |
Method | Description | |
---|---|---|
deleteRecord ( string $table, array $updatekeyfields ) : boolean | function deleteRecord Deletes a record based on the match array | |
insertRecord ( string $table, null | array $schema = null ) : integer | function insertRecord( Inserts this record's fields as a new row | |
updateRecord ( string $table, array $updatekeyfields = [], null | array $schema = null ) : boolean | function updateRecord Updates this record's fields using the new data |
public __construct ( array $paramarray = [] ) | ||
$paramarray | array | an associative array of initial field values. |
public exclude_fields ( mixed $fields ) | ||
$fields | mixed | A database field name (string) or an array of field names |
public get_raw_field ( string $name ) : mixed | ||
$name | string | Name of the field to get |
return | mixed | Value of the field, unfiltered |
public get_url_args ( ) : array | ||
return | array | The field settings as they would be saved |
protected insertRecord ( string $table, null | array $schema = null ) : integer | ||
$table | string | Table to update, use table name without prefix and without braces |
$schema | null | array | An array describing the schema of auxiliary tables |
return | integer | The inserted record id on success, false if not Again, the parent class's method's signature must match that of the child class's signature |
public jsonSerialize ( ) : string | ||
return | string |
public list_excluded_fields ( ) : array | ||
return | array | an array of field names |
public modify ( $paramarray = [] ) |
protected updateRecord ( string $table, array $updatekeyfields = [], null | array $schema = null ) : boolean | ||
$table | string | Table to update, use table name without prefix and without braces |
$updatekeyfields | array | An associative array of field data to match |
$schema | null | array | An array describing the schema of auxiliary tables |
return | boolean | True on success, false if not |