myMVC_BaseDBBase class for a database table's class Every table must have a derived class with the check function Example:
Located in /myMVC/BaseDB.php (line 51)
myMVC_TypeCheck | --myMVC_DatabaseConnector | --myMVC_BaseDB
| Class | Description |
|---|---|
myMVC_BaseLogin
|
Generic class for a user, that can log into the system. |
myMVC_GenericSQL
|
Generic class to query the database |
myMVC_SessionDB
|
Class to manage database-based sessions. |
static array
callFinder
(string $name, array $fields, [string $order = NULL], [int $limit = NULL], [int $offset = NULL])
static resource
callIterator
(string $name, array $fields, [string $order = NULL], [int $limit = NULL], [int $offset = NULL])
resource
findByParameter
(array $param, [array $useLike = array()], [string $order = NULL], [int $limit = NULL], [int $offset = NULL])
string
sqlExportByParameter
(array $param, [array $useLike = array()], [string $order = NULL], [int $limit = NULL], [int $offset = NULL], [boolean $exportToBrowser = true], [int $separateAfter = 50])
mixed
$autoincrement
(line 57)
mixed
$counters
(line 61)
mixed
$fields
(line 55)
mixed
$finders
(line 60)
mixed
$oldValues
(line 58)
mixed
$pk
(line 54)
mixed
$table
(line 53)
mixed
$uniques
(line 56)
mixed
$values
(line 58)
Inherited from myMVC_DatabaseConnector
myMVC_DatabaseConnector::$database
myMVC_DatabaseConnector::$login
myMVC_DatabaseConnector::$password
myMVC_DatabaseConnector::$server
static callCounter (line 365)
Calls a defined counter (see registerCounter)
static callFinder (line 225)
Calls a defined finder (see registerFinder)
static callIterator (line 257)
Iterate throws a defined finder (see registerFinder)
static deleteAll (line 811)
Deletes all records that match the given parameters
static findAll (line 440)
Returns all records
static findByPK (line 503)
Get a record using the primary key of the table
static getCountAll (line 488)
Returns the count of all records
static iterateAll (line 470)
Iterate all records
Constructor __construct (line 71)
Constructor
checkFields (line 671)
Checks if all the given data are valid
checkUniques (line 730)
Checks if the unique keys are satisfied
createWhere (line 547)
Creates the WHERE-statement for the SQL query, using parameters
delete (line 794)
Deletes the record, using the primary key
findByParameter (line 599)
Get a record from the database, using parameters
findBySQLQuery (line 652)
Sends to the database engine an SQL query and get the result
getCountByParameter (line 634)
Get the count of the records, using parameters
isRecordUnique (line 688)
Check whether the current record satisfies all unique keys
now (line 915)
Returns the current date and time, formatted as for insert in the database
nowFormatted (line 925)
Returns the current date and time, formatted as in the current locale
registerCounter (line 326)
Register a new counter method.
This can be called with the method callCounter.
registerFinder (line 183)
Register a new finder method.
This can be called with the method callFinder or iterateFinder.
save (line 743)
Save the data. It checks the PK: if the record does not exists, create a new record.
Otherwise it updates it.
saveValues (line 425)
Saves the values of the record
sqlExportByParameter (line 836)
Export data as SQL queries, using parameters Exportiert Datensätze als SQL anhand der eingegebenen Parametern
__call (line 140)
Dynamic get|set method If the function does not exists (unknown get|set Key), an error will be displayed
Inherited From myMVC_DatabaseConnector
myMVC_DatabaseConnector::__construct()
myMVC_DatabaseConnector::errno()
myMVC_DatabaseConnector::error()
myMVC_DatabaseConnector::execute()
myMVC_DatabaseConnector::executeSelect()
myMVC_DatabaseConnector::freeResult()
myMVC_DatabaseConnector::getDatabaseConnection()
myMVC_DatabaseConnector::getRowsNum()
myMVC_DatabaseConnector::getValueArrayFromResult()
myMVC_DatabaseConnector::getValuesFromResult()
myMVC_DatabaseConnector::quoteSqlString()
myMVC_DatabaseConnector::quoteSqlStringForLike()
Inherited From myMVC_TypeCheck
myMVC_TypeCheck::checkAutoIncrementalId()
myMVC_TypeCheck::checkBoolNotNull()
myMVC_TypeCheck::checkBoolNull()
myMVC_TypeCheck::checkDateNotNull()
myMVC_TypeCheck::checkDateNull()
myMVC_TypeCheck::checkDateTimeNotNull()
myMVC_TypeCheck::checkDateTimeNull()
myMVC_TypeCheck::checkDomainnameNotNull()
myMVC_TypeCheck::checkDomainnameNull()
myMVC_TypeCheck::checkEMailNotNull()
myMVC_TypeCheck::checkEMailNull()
myMVC_TypeCheck::checkIPNotNull()
myMVC_TypeCheck::checkIPNull()
myMVC_TypeCheck::checkMacNotNull()
myMVC_TypeCheck::checkMacNull()
myMVC_TypeCheck::checkMaskNotNull()
myMVC_TypeCheck::checkMaskNull()
myMVC_TypeCheck::checkNetworkNotNull()
myMVC_TypeCheck::checkNetworkNull()
myMVC_TypeCheck::checkSignedIntNotNull()
myMVC_TypeCheck::checkSignedIntNull()
myMVC_TypeCheck::checkSignedMediumIntNotNull()
myMVC_TypeCheck::checkSignedMediumIntNull()
myMVC_TypeCheck::checkSignedSmallIntNotNull()
myMVC_TypeCheck::checkSignedSmallIntNull()
myMVC_TypeCheck::checkSignedTinyIntNotNull()
myMVC_TypeCheck::checkSignedTinyIntNull()
myMVC_TypeCheck::checkString255NotNull()
myMVC_TypeCheck::checkString255Null()
myMVC_TypeCheck::checkTextNotNull()
myMVC_TypeCheck::checkTextNull()
myMVC_TypeCheck::checkTimeNotNull()
myMVC_TypeCheck::checkTimeNull()
myMVC_TypeCheck::checkUnsignedIntNotNull()
myMVC_TypeCheck::checkUnsignedIntNull()
myMVC_TypeCheck::checkUnsignedMediumIntNotNull()
myMVC_TypeCheck::checkUnsignedMediumIntNull()
myMVC_TypeCheck::checkUnsignedSmallIntNotNull()
myMVC_TypeCheck::checkUnsignedSmallIntNull()
myMVC_TypeCheck::checkUnsignedTinyIntNotNull()
myMVC_TypeCheck::checkUnsignedTinyIntNull()
myMVC_TypeCheck::checkURLNotNull()
myMVC_TypeCheck::checkURLNull()
Documentation generated on Thu, 05 Jan 2017 12:47:13 +0100 by phpDocumentor 1.4.4