Ferreteria/v0.3/class/tSelectable Source: Difference between revisions
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> /*tttt PURPOSE: Table-like object from which records can be selected but not necessarily a Table Basically, a query. U...") |
m (5 revisions imported: moving this project here) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{page/ | {{page/obsolete|ferreteria}} | ||
<source lang=php> | <source lang=php> | ||
/*tttt | /*tttt | ||
Line 28: | Line 28: | ||
} | } | ||
</source> | </source> | ||
* '''file''': {{l/ferreteria/file|data/sources/source-db.php}} | * '''replaced by''': {{l/ferreteria/class|tQueryableSource}} | ||
* '''file''': <s>{{l/ferreteria/file|data/sources/source-db.php}}</s> | |||
* '''used by''': | * '''used by''': | ||
** {{l/ferreteria/class|tSelectable_Source_simple}} | ** <s>{{l/ferreteria/class|tSelectable_Source_simple}}</s> | ||
** {{l/ferreteria/class|cIOSource_standard_query}} | ** <s>{{l/ferreteria/class|cIOSource_standard_query}}</s> |
Latest revision as of 16:44, 22 May 2022
/*tttt
PURPOSE: Table-like object from which records can be selected but not necessarily a Table
Basically, a query.
USE WITH cIOSource
*/
trait tSelectable_Source {
abstract public function FieldsString_forSelect();
abstract public function SourceString_forSelect();
function GetStoragePortals() {
/*----
ACTION: For each record in the current record source, the field values
are added to an array which is keyed by the given field.
INPUT: $sField = name of field to use as the array key
RETURNS: keyed array
*/
public function SelectRows_asArray($sField) {
/*----
RETURNS: Array consisting of just the values of the given field as found within the current recordset
HISTORY:
2017-05-27 written for title-topic display in VbzCart, because I couldn't find a replacement for ColumnValues_array().
This should be equivalent to what ColumnValues_array() used to do.
*/
public function SelectColumnValues_asArray($sField) {
// 2017-03-18 created for EventPlex
public function GetRows_forKeyList($sqlIDs) {
}
- replaced by: Template:L/ferreteria/class
- file:
Template:L/ferreteria/file - used by: