Difference between revisions of "Ferreteria/v2/class/fcTable keyed single"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Ferreteria‎ | v2‎ | class
Jump to: navigation, search
(Created page with "{{page/code/class}} * '''file''': {{l/ferreteria/file|db/v2/tables/db-table-keyed.php}} * '''extends''': {{l/version|class|fcTable_keyed}} * '''uses''': {{l/version|class|ftSi...")
 
m (related class renamed)
 
Line 2: Line 2:
 
* '''file''': {{l/ferreteria/file|db/v2/tables/db-table-keyed.php}}
 
* '''file''': {{l/ferreteria/file|db/v2/tables/db-table-keyed.php}}
 
* '''extends''': {{l/version|class|fcTable_keyed}}
 
* '''extends''': {{l/version|class|fcTable_keyed}}
* '''uses''': {{l/version|class|ftSingleKeyedTable}}
+
* '''uses''': {{l/version|class|ftSingleKeyedDBTable}}
 
* '''used by''': {{l/version|class|fcTable_keyed_single_standard}}
 
* '''used by''': {{l/version|class|fcTable_keyed_single_standard}}
 
==Functions==
 
==Functions==

Latest revision as of 00:26, 13 September 2019

Functions

  • public function Insert_andGet(array $arData)

Code

abstract class fcTable_keyed_single extends fcTable_keyed {
    use ftSingleKeyedTable;
    
    public function Insert_andGet(array $arData) {
	$id = $this->Insert($arData);
	if ($id === FALSE) {
	    return NULL;
	} else {
	    return $this->GetRecord_forKey($id);
	}
    }
}