Class Model1
Class Controller1 All Controller Class must Extend this, Model is also extending this which means, Model Can contain Controller function as Well... The Only Different between This and Api1 class is that, Controller get validate automatically just by putting or simply call form_token() in the form field
- ServerRequest1
-
Api1
-
Controller1
-
Model1
Direct known subclasses
AuthModel1
public
|
|
public static
null|string|string[]
|
|
public
mixed
|
|
public
static|
|
|
public
static|
|
|
public static
string
|
|
public
|
|
public static
static
|
|
public static
array
|
|
public static
|
|
public static
array
|
|
public
array
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
|
|
public static
|
|
public static
|
|
public static
Pixie\QueryBuilder\QueryBuilderHandler
|
|
public static
Pixie\QueryBuilder
|
|
public
|
|
public static
|
|
public static
mixed
|
|
public static
array|ArrayObject|boolean|mysqli_result|null]
|
|
public static
static|
|
#
findOrInit( array|
|
public static
static|string
|
|
public static
string|static
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
#
findAgainst( string $valueA = 'samtax01', string $valueB = '123456', array $search_in_columnA_list = ['user_name', 'email'], array $search_in_columnB_list = ['password'], string $againstLogic = ' AND ', string $logic = ' OR ', string $operator = ' = ', array $selectColumn = [] )
|
public
|
|
public
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
array|ArrayObject|boolean|mysqli_result|null|
|
|
public
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
#
updateMany( array $update_column_and_value = [], array $whereColumn_and_value = [], string $logic = ' AND ', string $operator = ' = ' )
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
#
tableCreate( array $columnSetSQLProperty = [], array $initDefaultRowList = [], boolean $silent = false )
|
public static
array|static
|
#
generateDemoData( integer $count = 1, array $ignoreColumn = ['id'], array $fieldAndPossibleValueArrayList = ['id'=>['2', '4', '5']], array $initField = [], boolean $convertToModel = true )
|
public static
|
#
tableCreateWithDemoList( boolean $insert = true, integer $count = 1, array $ignoreColumn = ['id'], array $fieldAndPossibleValueArrayList = ['id'=>['2', '4', '5']], $initField = [] )
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
boolean
|
|
public static
array|null
|
#
tableReset( boolean $addBackupToSession = true, boolean $backupAndRestore = true, string $optionalBackupFilePath = null )
|
public static
array|boolean|
|
|
public static
|
#
tableSaveBackup( string $saveToFilePath = null, $addBackupToSession = true )
Default save to assets/backup |
public static
array|null
|
|
public static
boolean|
|
|
public static
|
|
public static
array|ArrayObject|boolean|
|
#
insertOrUpdate( array $column_and_value = [], array $insertUniqueColumnKey = [], string $insertUniqueColumnLogic = ' AND ', null $primary_key_name_to_find_exists_model = null )
|
public static
array|ArrayObject|boolean|mysqli_result|null|static[]
|
#
selectMany( boolean $asArrayObject = false, string $whereRawClause = '', array $selectColumn = [] )
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
array
|
#
selectManyAsKeyValue( string $where = '', string $keyColumnName = 'id', string $valueColumnName = 'name' )
|
public static
mixed
|
|
public static
array
|
|
public static
array|ArrayObject|boolean|mysqli_result|null
|
|
public static
|
|
public static
|
|
public static
|
#
toAlterQuery( $asAdd_orElseModify = true, $keyAndParameter = ' `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7 ' )
|
public
|
|
public static
|
|
public static
|
|
public static
string
|
#
toForeignLinkAdd( string $myForeignReferenceKeyName = 'user_id', string $foreignTableName = 'users', string $foreignTablePrimaryId = 'id', $deleteCascade = true )
|
public static
array
|
|
public
string
|
|
public
string
|
|
public static
boolean
|
|
public static
static
|
|
public static
boolean
|
|
public static
string
|
#
toUpdateWhereQuery( array $update_column_and_value = [], array $where_column_and_value = [], string $logic = ' AND ', string $operator = ' = ' )
|
public static
mixed
|
#
toWhereValuesInColumnsQuery( array $columnsToSearchFrom = [], array $textToSearch = [], string $logic = 'OR', string $operator = '=' )
|
public static
mixed
|
#
whereValuesInColumnsAsRaw( Pixie\QueryBuilder\NestedCriteria $columns = [], array $values = [], array $logic = 'OR', string $operator = '=', string $query = null )
|
public static
Pixie\QueryBuilder\NestedCriteria
|
#
whereValuesInColumnsAsBuilder( Pixie\QueryBuilder\NestedCriteria $query, array $columns = [], array $values = [], string $logic = 'OR', string $operator = '=' )
|
public static
string
|
#
toWhereBuilder( array $column_and_its_value = [], string $logic = ' OR ', string $operator = ' = ', string $keyWrap = "`%s`", string $valueWrap = "'%s'" )
|
public static
|
#
toSelectWhereQuery( $column_and_value = [], $selectColumn = [], $logic = ' OR ', $operator = ' = ' )
|
public static
|
|
public static
string
|
|
public static
string
|
|
public static
|
#
convertToMySqlDataType( $variableName = '', $variableValue = '', $addAttribute = true, $sqlColumn_equal_propertyValue = [] )
|
public static
|
|
public static
|
|
public
array:
|
|
public
array|null
|
#
getFilePathAndUrl( string $file_name = '', $uploadMainDirectory = 'uploads', string $onlyIfExists = true )
|
public
boolean
|
|
public
boolean|null|string
|
#
uploadFile( null $source_url = null, null $file_name = null, boolean $addUrlToModel1FileLocator = false, boolean $compress = true, string $uploadMainDirectory = 'uploads' )
|
public
null|string
|
#
getFileUrl( $file_name = '', string $orDemoPictureUrl = '...', string $uploadMainDirectory = 'uploads' )
|
public
null|string
|
|
public
array
|
|
public
array
|
#
getFileUrlList( boolean $fromModel1FileLocator = false, array $filterExtensionList = [], boolean $recursive = false )
|
public
boolean
|
#
deleteFile( string $file_name = '', string $uploadMainDirectory = 'uploads' )
Delete Any Uploaded File |
isApiAuthValid()
|
callFunction(),
callFunctionByUrl()
|
public static
boolean
|
$FLAG_SHOW_EXEC_QUERY
Do not Execute Query, Just Display it |
#
false
|
public
array
|
$__COLUMN_SQL_PROPERTY_LIST
Set SQL property either in Model with $COLUMN_SQL_PROPERTY_LIST = [ 'id'=>'INTEGER NULL DEFAULT 110', 'fullName'=>'TEXT NULL', ... ] OR in Debug Mode with Model1::createTable( ['id'=>'INTEGER NULL DEFAULT 110 '], .... ) |
#
[]
|
public static
string
|
$EXECUTED_MESSAGE
Last Executed Message |
#
''
|
public static
integer
|
$SQL_VARCHAR_STRING_LENGTH
Maximum String Length for default varchar datatype |
#
350
|
public static
string
|
$SQL_TIMESTAMP_FORMAT
SQL timeStamp format |
#
'Y-m-d h:1:s'
|
public static
array
|
$FIX_COLUMN
Default Column that will be created for all column |
#
['id', 'created_at', 'updated_at']
|
public static
string
|
$PRIMARY_KEY_NAME
default primary key for all model, will be create automatically |
#
'id'
|
public static
null
|
$TABLE_NAME
current table name |
#
null
|
$api_id,
$api_key
|
$request
|