Ferreteria/v0.3/class/cPortalRow database: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 31: Line 31:
     public function GetRow_forKey($id) {
     public function GetRow_forKey($id) {
     protected function FigureSelectSQL($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) {}
     protected function FigureSelectSQL($sqlWhere=NULL,$sqlSort=NULL,$sqlOther=NULL) {}
}
</source>
</source>
* '''replaced by''': {{l/ferreteria/class|tDatabaseStorage}}, {{l/ferreteria/class|tQueryableSource}}
* '''replaced by''': {{l/ferreteria/class|tDatabaseStorage}}, {{l/ferreteria/class|tQueryableSource}}

Revision as of 19:03, 1 January 2019

Template:Page/obsolete

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