oops_record __construct(
$type,
$tablename
)
|
|
Construct a record
Parameters:
API Tags:
Redefined in descendants as:
Cache this instance using it's own id
API Tags:
Call every class-method with a specific name
All the arguments passed to this call are also arguments to the method.
- except the first argument is the name of the method to call
- the first argument to the method is always an array, which gets
passed to the next method call, etc, etc.
in the end its returned
API Tags:
| Return: | return array or false if there were no classes |
| Access: | public |
Call the 'best' (latest,highest in the class hierarchy) method
API Tags:
Delete the current record
API Tags:
void getLanguageField(
$name, [
$language = false]
)
|
|
Built-in language field logica
Parameters:
API Tags:
Get the column information from the table
API Tags:
Get a database resource
API Tags:
Get ID of the record
Example:
API Tags:
Get the contents of the object in JSON format
API Tags:
Redefined in descendants as:
void get_no_of_records(
)
|
|
Return the number of records
API Tags:
void get_primarykey_fieldname(
)
|
|
Get the name of the primarykey fieldname
API Tags:
Have a 'best' call?
Parameters:
API Tags:
Load record by primary key
Parameters:
API Tags:
void loadall(
[
$args = array()]
)
|
|
Load records by a specific field and value
Parameters:
API Tags:
void loadallby(
$by,
$value, [
$operator = '=']
)
|
|
Load records by a specific field and value
Parameters:
API Tags:
void loadby(
$by,
$value, [
$operator = '=']
)
|
|
Load record by a specific field and value
Parameters:
API Tags:
Returns true if the record has been loaded from a source
Example:
[[if $entry->loaded()]]geladen[[/
if]]
API Tags:
| Return: | true if the record has been loaded from a source |
| Access: | public |
register this class to the registry
API Tags:
Save the current record
API Tags:
Redefined in descendants as:
void search(
$q, [
$params = array()]
)
|
|
Parameters:
API Tags:
Put the contents of the object from a JSON feed
Parameters:
API Tags:
Redefined in descendants as:
void share_instance(
$vars
)
|
|
Internal call for sharing data between records
Parameters:
API Tags:
void smarty_load(
$params,
&$smarty
)
|
|
Smarty standard load
A simple basic load call to load a single record.
<dl> <dt>assign</dt><dd>assign result to this variable</dd> <dt>by_<em>column</em></dt><dd>value must be exactly this value</dd> <dt>eq_<em>column</em></dt><dd>value must be exactly this value</dd> <dt>ne_<em>column</em></dt><dd>value must not be this value</dd> <dt>lt_<em>column</em></dt><dd>value must be less then this value</dd> <dt>lte_<em>column</em></dt><dd>value must be less than or equal to this value</dd> <dt>gt_<em>column</em></dt><dd>value must be greater than this value</dd> <dt>gte_<em>column</em></dt><dd>value must be greater than or equal to this value</dd> <dt>like_<em>column</em></dt><dd>value must be like this value</dd> <dt>limit</dt><dd>limit the number of results to this value</dd> <dt>order_by</dt><dd>order the results on these columns</dd> <dt>group_by</dt><dd>group the results using these columns</dd> <dt>sql_offset</dt><dd>set the sql offset in the sql statement</dd> <dt>sql_limit</dt><dd>limit the number of results in the sql statement</dd> <dt>random<dt><dd>set to '1' to choose a random result</dd> </dl>
Example:
[[oops_*entry*_load assign='*entry*' by_uid=2]]
Example: [[oops_*entry*_load assign='*entry*' by_uri='about']]
Parameters:
API Tags:
void smarty_loadall(
$params,
&$smarty
)
|
|
Smarty standard load all
A simple basic load call to load specific records.
<dl> <dt>assign</dt><dd>assign result to this variable</dd> <dt>by_<em>column</em></dt><dd>value must be exactly this value</dd> <dt>eq_<em>column</em></dt><dd>value must be exactly this value</dd> <dt>ne_<em>column</em></dt><dd>value must not be this value</dd> <dt>lt_<em>column</em></dt><dd>value must be less then this value</dd> <dt>lte_<em>column</em></dt><dd>value must be less than or equal to this value</dd> <dt>gt_<em>column</em></dt><dd>value must be greater than this value</dd> <dt>gte_<em>column</em></dt><dd>value must be greater than or equal to this value</dd> <dt>like_<em>column</em></dt><dd>value must be like this value</dd> <dt>limit</dt><dd>limit the number of results to this value</dd> <dt>order_by</dt><dd>order the results on these columns</dd> <dt>group_by</dt><dd>group the results using these columns</dd> <dt>sql_offset</dt><dd>set the sql offset in the sql statement</dd> <dt>sql_limit</dt><dd>limit the number of results in the sql statement</dd> <dt>random<dt><dd>set to '1' to choose a random result</dd> <dt>size</dt><dd>size of the pages used for pagination (don't use limit anymore)</dd> <dt>paginate</dt><dd>set the GET variable used for the pagination</dd> </dl>
Example:
[[oops_*entry*_loadall assign='*entry*s']]
Example: [[oops_*entry*_loadall assign='*entry*s' order_by='publish_date']]
Parameters:
API Tags:
Redefined in descendants as:
void smarty_search(
$params,
&$smarty
)
|
|
Implements searching
<dl> <dt>q</dt><dd>search string</dd> </dl>
Parameters:
API Tags:
Get record type
API Tags:
A dummy weigh function
Parameters:
API Tags:
Redefined in descendants as:
void _smarty_loadall_params(
$params, [
$args = array()]
)
|
|
Default smarty loadall params parsing
Parameters:
API Tags:
Redefined in descendants as:
void __call(
$name,
$args
)
|
|
Make method calls to other classes which also descend from the base class
Parameters:
API Tags:
Delete the current record
Actual delete call
API Tags:
Internal getter
Parameters:
API Tags:
Redefined in descendants as:
Internal issetter
Parameters:
API Tags:
void __load(
$classname,
$select_sql,
&$data
)
|
|
Load records as objects via a select sql array
Parameters:
|
|
$classname: |
|
|
|
$select_sql: |
|
|
|
&$data: |
|
API Tags:
void __load_array(
$select_sql,
&$data
)
|
|
Load records as arrays via an select sql array or sql string
Parameters:
API Tags:
Redefined in descendants as:
void __save(
$tablename,
$primarykey_fieldname,
&$data
)
|
|
Save an associative array to the database
Parameters:
|
|
$tablename: |
|
|
|
$primarykey_fieldname: |
|
|
|
&$data: |
|
API Tags:
void __search_records(
$q, [
$params = array()]
)
|
|
Perform a search on the table and weigh/sort the results
Parameters:
API Tags:
Redefined in descendants as:
void __set(
$name,
$value
)
|
|
Internal setter
Parameters:
API Tags:
Redefined in descendants as:
void __transfer_get(
$name
)
|
|
Get the value of a field, but do no conversions on it
Parameters:
API Tags:
void __transfer_set(
$name,
$value
)
|
|
Set the value of a field, but do no conversions on it
Parameters:
API Tags:
Internal unsetter
Parameters:
API Tags: