Ferreteria/v0.3/class/tSelectable Source: Difference between revisions
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
No edit summary |
(no longer used) |
||
Line 31: | Line 31: | ||
* '''file''': <s>{{l/ferreteria/file|data/sources/source-db.php}}</s> | * '''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> |
Revision as of 14:27, 31 December 2018
/*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: