Ferreteria/v0.3/class/cPortalRow database: Difference between revisions
< Ferreteria | v0.3 | class
Jump to navigation
Jump to search
(Created page with "{{page/code/class|ferreteria}} <source lang=php> class cPortalRow_database extends cPortalRow_storage { use tDatabaseStorage; } </source> * '''file''': {{l/ferreteria/file...") |
(moved trait stuff here) |
||
Line 2: | Line 2: | ||
<source lang=php> | <source lang=php> | ||
class cPortalRow_database extends cPortalRow_storage { | class cPortalRow_database extends cPortalRow_storage { | ||
use | use tSourcedStorage; | ||
} | use tSequentialAccess; | ||
public function RewindRows() { | |||
/*---- | |||
ACTION: Retrieves the current row data and advances to the next | |||
RETURNS: row data as an array, or NULL if no more rows | |||
CEMENT | |||
*/ | |||
public function NextRow() { | |||
/*---- | |||
RETURNS: number of rows in the resultset | |||
CEMENT | |||
*/ | |||
public function GetFoundRowCount() { | |||
// TODO: rename to something like IsAnyRowFound() | |||
public function IsRowFound() { | |||
/*---- | |||
RETURNS: Nothing | |||
OUTPUT: $this and $this->GetRowObject() | |||
*/ | |||
public function FetchRows($sql) { | |||
/*---- | |||
RETURNS: nothing | |||
OUTPUT: same as $this->FetchRows() | |||
*/ | |||
public function SelectRows($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) : cResultRows { | |||
public function GetRow_forKey($id) { | |||
protected function FigureSelectSQL($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) {} | |||
</source> | </source> | ||
* '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}} | * '''file''': {{l/ferreteria/file|data/portals/rows/storage.php}} | ||
* '''extends''': {{l/ferreteria/class|cPortalRow_storage}} | * '''extends''': {{l/ferreteria/class|cPortalRow_storage}} | ||
* '''uses''': {{l/ferreteria/class| | * '''uses''': | ||
** {{l/ferreteria/class|tSourcedStorage}} | |||
** {{l/ferreteria/class|tSequentialAccess}} | |||
* '''extenders''': ''none'' | * '''extenders''': ''none'' |
Revision as of 00:25, 29 December 2018
class cPortalRow_database extends cPortalRow_storage {
use tSourcedStorage;
use tSequentialAccess;
public function RewindRows() {
/*----
ACTION: Retrieves the current row data and advances to the next
RETURNS: row data as an array, or NULL if no more rows
CEMENT
*/
public function NextRow() {
/*----
RETURNS: number of rows in the resultset
CEMENT
*/
public function GetFoundRowCount() {
// TODO: rename to something like IsAnyRowFound()
public function IsRowFound() {
/*----
RETURNS: Nothing
OUTPUT: $this and $this->GetRowObject()
*/
public function FetchRows($sql) {
/*----
RETURNS: nothing
OUTPUT: same as $this->FetchRows()
*/
public function SelectRows($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) : cResultRows {
public function GetRow_forKey($id) {
protected function FigureSelectSQL($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) {}
- file: Template:L/ferreteria/file
- extends: Template:L/ferreteria/class
- uses:
- extenders: none