• API
  • -
  • Redaxscript

Auth

  • Namespace: \Redaxscript
  • Description: parent class to authenticate the user
  • Package: Redaxscript
  • Category: Auth
  • Author: Henry Ruhs
  • Method: getPermissionNew
  • Method: getPermissionInstall
  • Method: getPermissionEdit
  • Method: getPermissionDelete
  • Method: getPermissionUninstall
  • Method: getFilter

Properties

PropertyTypeVisibilityDescription
_requestprotected
_userArrayprotected
_permissionArrayprotected
_typeArrayprotected
_callArrayprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__constructpublicconstructor of the class
__callpubliccall method as needed
initpublicinit the class
loginpubliclogin the user
logoutpubliclogout the user
getUserpublicget the value from user
getUserArraypublicget the array from user
setUserpublicset the user
getPermissionpublicget the value from permission
getPermissionArraypublicget the array from permission
setPermissionpublicset the permission
getStatuspublicget the auth status
savepublicsave user and permission
_getAuthprotectedget the auth from session
_setAuthprotectedset the auth to session
MethodVisibilityDescription

Autoloader

  • Namespace: \Redaxscript
  • Description: parent class to load required class files
  • Package: Redaxscript
  • Category: Autoloader
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_autoloadArrayprotected
_fileExtensionprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
_loadprotectedload the class file
_getFileprotectedget the file
MethodVisibilityDescription

Captcha

  • Namespace: \Redaxscript
  • Description: parent class to provide a mathematical task
  • Package: Redaxscript
  • Category: Captcha
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_languageprotected
_modeprotected
_taskprotected
_solutionprotected
_rangeArrayprotected
_operatorArrayprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__constructpublicconstructor of the class
initpublicinit the class
getTaskpublicget the task
getSolutionpublicget the solution
getMinpublicget the minimum range
getMaxpublicget the maximum range
_getOperatorprotectedget the mathematical operator used for the task
_createprotectedcreate a task of two numbers between allowable range
MethodVisibilityDescription

Config

  • Namespace: \Redaxscript
  • Description: children class to store database config
  • Package: Redaxscript
  • Category: Config
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_configPathprotected
_configArrayprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
getpublicget the value from config
getArraypublicget the array from config
setpublicset the value to config
parsepublicparse from database url
writepublicwrite the config
clearpublicclear the config
_writeContentprotectedwrite content to file
__constructprivateconstructor of the class
getInstancepublicget the instance
clearInstancepublicclear the instance
MethodVisibilityDescription

Dater

  • Namespace: \Redaxscript
  • Description: parent class to handle the date time
  • Package: Redaxscript
  • Category: Date
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_timeZoneprotected
_dateTimeprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
getTimeZonepublicget the time zone
getDateTimepublicget the date time
formatTimepublicformat to time
formatDatepublicformat to date
formatFieldpublicformat to field
MethodVisibilityDescription

Db

  • Namespace: \Redaxscript
  • Description: children class to handle the database
  • Package: Redaxscript
  • Category: Db
  • Author: Henry Ruhs
  • Method: _addJoinSource
  • Method: _addOrderBy
  • Method: _addWhere

Properties

PropertyTypeVisibilityDescription
_configprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
constructpublicconstructor of the class
initpublicinit the class
getStatuspublicget the database status
setAutoIncrementpublicset the auto increment
countTablePrefixpubliccount table with prefix
forTablePrefixpublicfor table with prefix
leftJoinPrefixpublicleft join with prefix
whereLikeManypublicwhere like with many
whereLanguageIspublicwhere language is
findFlatArraypublicfind the flat array
orderBySettingpublicorder by global setting
limitBySettingpubliclimit by global setting
getSettingpublicget the value from settings
MethodVisibilityDescription

Hash

  • Namespace: \Redaxscript
  • Description: parent class to create a salted hash
  • Package: Redaxscript
  • Category: Hash
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_rawprotected
_hashprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
getAlgorithmpublicget the algorithm
getRawpublicget the raw
getHashpublicget the hash
validatepublicvalidate raw again hash
_createprotectedcreate a salted hash
MethodVisibilityDescription

Header

  • Namespace: \Redaxscript
  • Description: children class to add and remove the header
  • Package: Redaxscript
  • Category: Header
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
No property present
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
getArraypublicget the header array
addpublicadd the header
removepublicremove the header
isSentpublicis header sent
responseCodepublicresponse code
doRedirectpublicredirect to location
contentTypepubliccontent type
MethodVisibilityDescription

Installer

  • Namespace: \Redaxscript
  • Description: parent class to install the database
  • Category: Installer
  • Package: Redaxscript
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_registryprotected
_requestprotected
_languageprotected
_configprotected
_directoryprotected
_prefixPlaceholderprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
__constructpublicconstructor of the class
initpublicinit the class
rawCreatepubliccreate from sql
rawDroppublicdrop from sql
rawMigratepublicmigrate from sql
insertDatapublicinsert the data
insertCategoriespublicinsert the categories
insertArticlespublicinsert the articles
insertExtraspublicinsert the extras
insertCommentspublicinsert the comments
insertGroupspublicinsert the groups
insertUserspublicinsert the users
insertModulespublicinsert the modules
insertSettingspublicinsert the settings
_rawExecuteprotectedexecute from sql
MethodVisibilityDescription

Language

  • Namespace: \Redaxscript
  • Description: children class to provide the language
  • Package: Redaxscript
  • Category: Language
  • Author: Henry Ruhs

Properties

PropertyTypeVisibilityDescription
_languageArrayprotected
PropertyTypeVisibilityDescription

Methods

MethodVisibilityDescription
initpublicinit the class
getpublicget the value from language
getArraypublicget the array from language
setpublicset the value to language
loadpublicload from language path
__constructprivateconstructor of the class
getInstancepublicget the instance
clearInstancepublicclear the instance
MethodVisibilityDescription