Ferreteria/v0.3/class/tSelectable Source: Difference between revisions

From Woozle Writes Code
< 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...")
 
No edit summary
Line 1: Line 1:
{{page/code/class|ferreteria}}
{{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}}
** {{l/ferreteria/class|tSelectable_Source_simple}}
** {{l/ferreteria/class|cIOSource_standard_query}}
** {{l/ferreteria/class|cIOSource_standard_query}}

Revision as of 00:25, 31 December 2018

Template:Page/obsolete

/*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) {
}