Ubiquity  2.0.3
php rapid development framework
UbiquityMyAdminBaseController Class Reference
+ Inheritance diagram for UbiquityMyAdminBaseController:

Public Member Functions

 initialize ()
 
 finalize ()
 
 index ()
 
 models ($hasHeader=true)
 
 controllers ()
 
 _refreshControllers ($refresh=false)
 
 routes ()
 
 cache ()
 
 rest ()
 
 config ($hasHeader=true)
 
 logs ()
 
 seo ()
 
 git ($hasMessage=true)
 
 _showDiagram ()
 
 _updateDiagram ()
 
 _showAllClassesDiagram ()
 
 _updateAllClassesDiagram ()
 
 showDatabaseCreation ()
 
 _runPostWithParams ($method="post", $type="parameter", $origine="routes")
 
 _deleteCookie ($index, $type="post")
 
 _runAction ($frm=null)
 
 _getAdminData ()
 
 _getModelViewer ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 _getBaseRoute ()
 
 _getInstancesFilter ($model)
 
- Public Member Functions inherited from Controller
 index ()
 Default action. More...
 
 __construct ()
 Constructor initialize $view variable. More...
 
 initialize ()
 Method called before each action Can be override in derived class. More...
 
 finalize ()
 Method called after each action Can be override in derived class. More...
 
 loadView ($viewName, $pData=NULL, $asString=false)
 Loads the view $viewName possibly passing the variables $pdata. More...
 
 loadDefaultView ($pData=NULL, $asString=false)
 Loads the default view (controllerName/actionName) possibly passing the variables $pdata. More...
 
 getDefaultViewName ()
 Returns the default view name for this controller/action i.e ControllerName/actionName.html for the action actionName in ControllerName. More...
 
 isValid ($action)
 Returns True if access to the controller is allowed To be override in sub classes. More...
 
 onInvalidControl ()
 Called if isValid () returns false
To be override in sub classes. More...
 
 forward ($controller, $action="index", $params=array(), $initialize=false, $finalize=false)
 Loads the controller $controller and calls its $action method by passing the parameters $params. More...
 
 redirectToRoute ($routeName, $parameters=[], $initialize=false, $finalize=false)
 Redirect to a route by its name. More...
 
 getView ()
 
- Public Member Functions inherited from MessagesTrait
 _getModelViewer ()
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 showConfMessage ($content, $type, $title, $url, $responseElement, $data, $attributes=NULL)
 
- Public Member Functions inherited from ModelsTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getModelViewer ()
 
 _getAdminFiles ()
 
 showTable ($table, $id=null)
 
 refreshTable ($id=null)
 
 showTableClick ($tableAndId)
 
 refresh_ ()
 
 edit ($modal="no", $ids="")
 
 newModel ($modal="no")
 
 update ()
 
 delete ($ids)
 
 showDetail ($ids)
 
- Public Member Functions inherited from ModelsConfigTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 _getModelsStepper ()
 
 _isModelsCompleted ()
 
 _changeEngineering ($oldEngineering, $completed=null)
 
 _loadModelStep ($engineering=null, $newStep=null)
 
 _importFromYuml ()
 
 _generateFromYuml ()
 
 _updateYumlDiagram ()
 
- Public Member Functions inherited from CheckTrait
 _isModelsCompleted ()
 
 _getAdminFiles ()
 
 createModels ($singleTable=null)
 
- Public Member Functions inherited from RestTrait
 _getAdminFiles ()
 
 _getAdminViewer ()
 
 initRestCache ($refresh=true)
 
 _displayRestFormTester ()
 
 _frmNewResource ()
 
 _createNewResource ()
 
 _runRestMethod ()
 
 _saveToken ()
 
 _saveRequestParams ($type="parameter")
 
- Public Member Functions inherited from CacheTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 setCacheTypes ()
 
 deleteCacheFile ()
 
 deleteAllCacheFiles ()
 
 _showFileContent ()
 
 initCacheType ()
 
 _initModelsCache ()
 
- Public Member Functions inherited from ConfigTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 loadView ($viewName, $pData=NULL, $asString=false)
 
 config ($hasHeader=true)
 
 formConfig ($hasHeader=true)
 
 _config ()
 
 submitConfig ($partial=true)
 
 _checkArray ()
 
 _checkDirectory ()
 
 _checkClass ()
 
 _checkDbStatus ()
 
- Public Member Functions inherited from ControllersTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 controllers ()
 
 _refreshControllers ($refresh=false)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 createController ($force=null)
 
 _createView ()
 
 _newActionFrm ()
 
 _controllerExists ($fieldname)
 
 _methodExists ()
 
 _checkContent ()
 
 _checkRoute ()
 
 _addRouteWithNewAction ()
 
 _newAction ()
 
 _refreshCacheControllers ()
 
 frmFilterControllers ()
 
 filterControllers ()
 
- Public Member Functions inherited from RoutesTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 initCacheRouter ()
 
 filterRoutes ()
 
- Public Member Functions inherited from DatabaseTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 loadView ($viewName, $pData=NULL, $asString=false)
 
 createSQLScript ()
 
 exportDatasScript ()
 
- Public Member Functions inherited from SeoTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 loadView ($viewName, $pData=NULL, $asString=false)
 
 seo ()
 
 displaySiteMap (... $params)
 
 generateRobots ()
 
 seoRefresh ()
 
 _newSeoController ()
 
 createSeoController ($force=null)
 
 _checkController ()
 
 saveUrls ()
 
 deleteSeoController (... $params)
 
 seeSeoUrl (... $params)
 
- Public Member Functions inherited from GitTrait
 _getAdminData ()
 
 _getAdminViewer ()
 
 _getAdminFiles ()
 
 loadView ($viewName, $pData=NULL, $asString=false)
 
 git ()
 
 gitRefresh ()
 
 _git ()
 
 gitInit ()
 
 frmSettings ()
 
 updateGitParams ()
 
 commit ()
 
 gitPush ()
 
 gitPull ()
 
 gitIgnoreEdit ()
 
 gitIgnoreValidate ()
 
 refreshFiles ()
 
 refreshCommits ()
 
 changesInfiles (... $filenameParts)
 
 changesInCommit ($commitHash)
 
- Public Member Functions inherited from CreateControllersTrait
 _getAdminFiles ()
 
 frmAddCrudController ()
 
 _addCtrlRoute ($type)
 
 addCrudController ()
 
 frmAddAuthController ()
 
 addAuthController ()
 

Static Public Member Functions

static _error_handler ($buffer)
 

Protected Member Functions

 initializeJs ()
 
 addNavigationTesting ()
 
 _seo ()
 
 getHeader ($key)
 
 _getYumlImage ($sizeType, $yumlContent)
 
 _getActualParamsAsArray ($urlEncodedParams)
 
 _addNameValueParamFields ($frm, $type, $name, $value, $index)
 
 _createController ($controllerName, $variables=[], $ctrlTemplate='controller.tpl', $hasView=false, $jsCallback="")
 
 _addMessageForRouteCreation ($path, $jsCallback="")
 
 getAdminData ()
 
 getUbiquityMyAdminViewer ()
 
 getUbiquityMyAdminModelViewer ()
 
 getUbiquityMyAdminFiles ()
 
 getTableNames ()
 
- Protected Member Functions inherited from MessagesTrait
 _showSimpleMessage (CRUDMessage $message, $staticName=null)
 
 _showConfMessage (CRUDMessage $message, $url, $responseElement, $data, $attributes=NULL)
 
- Protected Member Functions inherited from ModelsTrait
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _showModel ($model, $id=null)
 
 getInstances ($model, $page=1, $id=null)
 
 search ($model, $search)
 
 _edit ($instance, $modal="no")
 
 getModelsNS ()
 
- Protected Member Functions inherited from ModelsConfigTrait
 getModelSteps ()
 
 getActiveModelStep ()
 
 getNextModelStep ()
 
 displayModelsMessages ($type, $messagesToDisplay)
 
- Protected Member Functions inherited from CheckTrait
 getModelSteps ()
 
 getActiveModelStep ()
 
 getNextModelStep ()
 
 displayModelsMessages ($type, $messagesToDisplay)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _checkStep ($niveau=null)
 
 _modelCheckOneNiveau ($name)
 
 checkDatabase ($config, $infoIcon="database")
 
 checkModels ($config, $infoIcon="sticky note")
 
 checkModelsCache ($config, $infoIcon="lightning")
 
 checkArrayCache ($config, $infoIcon="lightning")
 
 checkModelsCacheFiles ($config, $infoIcon="lightning")
 
 displayAllMessages ()
 
 showActions ()
 
 missingKeyInConfigMessage ($message, $keys)
 
 _addErrorMessage ($type, $content)
 
 _addInfoMessage ($type, $content)
 
 _addMessage ($key, $type, $content)
 
 hasError ()
 
 hasNoError ()
 
 hasMessages ()
 
 displayMessages ($type, $messagesToDisplay, $header="", $icon="")
 
- Protected Member Functions inherited from RestTrait
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _refreshRest ($refresh=false)
 
 _displayActionDoc ($controller, $action)
 
 _addRestDataTableBehavior ()
 
 getRestRequestHeaders ()
 
 getRestRequestParams ()
 
 _getParamsForJSON (&$result, $params)
 
- Protected Member Functions inherited from ConfigTrait
 showConfMessage ($content, $type, $title, $url, $responseElement, $data, $attributes=NULL)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _checkCondition ($callback)
 
- Protected Member Functions inherited from ControllersTrait
 _createController ($controllerName, $variables=[], $ctrlTemplate='controller.tpl', $hasView=false, $jsCallback="")
 
 _addMessageForRouteCreation ($path)
 
 _createClass ($template, $classname, $namespace, $uses, $extendsOrImplements, $classContent)
 
 _createMethod ($access, $name, $parameters="", $return="", $content="", $comment="")
 
- Protected Member Functions inherited from RoutesTrait
 addNavigationTesting ()
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
- Protected Member Functions inherited from DatabaseTrait
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 getModels ()
 
- Protected Member Functions inherited from SeoTrait
 _seo ()
 
 showConfMessage ($content, $type, $title, $url, $responseElement, $data, $attributes=NULL)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _createController ($controllerName, $variables=[], $ctrlTemplate='controller.tpl', $hasView=false, $jsCallback="")
 
 _deleteController ($controllerName)
 
- Protected Member Functions inherited from GitTrait
 showConfMessage ($content, $type, $itle, $url, $responseElement, $data, $attributes=NULL)
 
 showSimpleMessage ($content, $type, $title=null, $icon="info", $timeout=NULL, $staticName=null)
 
 _getRepo ($getfiles=true)
 
 _refreshParts ()
 
- Protected Member Functions inherited from CreateControllersTrait
 _createMethod ($access, $name, $parameters="", $return="", $content="", $comment="")
 
 _createClass ($template, $classname, $namespace, $uses, $extendsOrImplements, $classContent)
 
 _createController ($controllerName, $variables=[], $ctrlTemplate='controller.tpl', $hasView=false, $jsCallback="")
 
 createCRUDDatasClass ($crudControllerName)
 
 createModelViewerClass ($crudControllerName)
 
 createEventsClass ($crudControllerName)
 
 createCRUDFilesClass ($crudControllerName, $classContent="")
 
 createAuthFilesClass ($authControllerName, $classContent="")
 
 createCrudView ($frameworkName, $controllerName, $newName)
 

Private Member Functions

 _getClassToYuml ($model, $post)
 
 _getClassesToYuml ($post)
 
 _diagramMenu ($url="/_updateDiagram", $params="{}", $responseElement="#diag-class", $type="plain", $size=";scale:100")
 
 _setPostCookie ($content, $method="post", $index=null)
 
 _setGetCookie ($index, $content)
 
 _getParametersFromCookie ($url, $params)
 
 getRequiredRouteParameters (&$url, $newParams=null)
 
 getSingleton ($value, $method)
 

Private Attributes

 $adminData
 
 $adminViewer
 
 $adminFiles
 
 $adminModelViewer
 
 $globalMessage
 

Additional Inherited Members

- Data Fields inherited from ModelsConfigTrait
 reverse => [ [ "toggle off","Engineering","Reverse" ]
 
- Data Fields inherited from CheckTrait
 info => [ ] ]
 
- Data Fields inherited from CreateControllersTrait
 form
 
- Protected Attributes inherited from Controller
 $view
 
- Protected Attributes inherited from ModelsTrait
 $activePage
 
 $formModal ="no"
 
- Protected Attributes inherited from CheckTrait
 $messages =[ "error" => [ ]
 

Detailed Description

Definition at line 50 of file UbiquityMyAdminBaseController.php.

Member Function Documentation

◆ _addMessageForRouteCreation()

_addMessageForRouteCreation (   $path,
  $jsCallback = "" 
)
protected

Definition at line 870 of file UbiquityMyAdminBaseController.php.

◆ _addNameValueParamFields()

_addNameValueParamFields (   $frm,
  $type,
  $name,
  $value,
  $index 
)
protected

Definition at line 696 of file UbiquityMyAdminBaseController.php.

◆ _createController()

_createController (   $controllerName,
  $variables = [],
  $ctrlTemplate = 'controller.tpl',
  $hasView = false,
  $jsCallback = "" 
)
protected

Definition at line 835 of file UbiquityMyAdminBaseController.php.

◆ _deleteCookie()

_deleteCookie (   $index,
  $type = "post" 
)

Definition at line 704 of file UbiquityMyAdminBaseController.php.

◆ _diagramMenu()

_diagramMenu (   $url = "/_updateDiagram",
  $params = "{}",
  $responseElement = "#diag-class",
  $type = "plain",
  $size = ";scale:100" 
)
private
Parameters
string$url
string$params
string$responseElement
string$type
Returns
HtmlMenu

Definition at line 482 of file UbiquityMyAdminBaseController.php.

◆ _error_handler()

static _error_handler (   $buffer)
static

Definition at line 102 of file UbiquityMyAdminBaseController.php.

◆ _getActualParamsAsArray()

_getActualParamsAsArray (   $urlEncodedParams)
protected

Definition at line 677 of file UbiquityMyAdminBaseController.php.

◆ _getAdminData()

_getAdminData ( )
Returns
CRUDDatas

Implements HasModelViewerInterface.

Definition at line 907 of file UbiquityMyAdminBaseController.php.

◆ _getAdminFiles()

_getAdminFiles ( )
Returns
UbiquityMyAdminFiles

Definition at line 930 of file UbiquityMyAdminBaseController.php.

◆ _getAdminViewer()

_getAdminViewer ( )
Returns
UbiquityMyAdminViewer

Definition at line 922 of file UbiquityMyAdminBaseController.php.

◆ _getBaseRoute()

_getBaseRoute ( )

Implements HasModelViewerInterface.

Definition at line 938 of file UbiquityMyAdminBaseController.php.

◆ _getClassesToYuml()

_getClassesToYuml (   $post)
private

Definition at line 450 of file UbiquityMyAdminBaseController.php.

◆ _getClassToYuml()

_getClassToYuml (   $model,
  $post 
)
private

Definition at line 436 of file UbiquityMyAdminBaseController.php.

◆ _getInstancesFilter()

_getInstancesFilter (   $model)

Implements HasModelViewerInterface.

Definition at line 941 of file UbiquityMyAdminBaseController.php.

◆ _getModelViewer()

_getModelViewer ( )
Returns
ModelViewer

Definition at line 914 of file UbiquityMyAdminBaseController.php.

◆ _getParametersFromCookie()

_getParametersFromCookie (   $url,
  $params 
)
private

Definition at line 780 of file UbiquityMyAdminBaseController.php.

◆ _getYumlImage()

_getYumlImage (   $sizeType,
  $yumlContent 
)
protected

Definition at line 531 of file UbiquityMyAdminBaseController.php.

◆ _refreshControllers()

_refreshControllers (   $refresh = false)

Definition at line 230 of file UbiquityMyAdminBaseController.php.

◆ _runAction()

_runAction (   $frm = null)

Definition at line 730 of file UbiquityMyAdminBaseController.php.

◆ _runPostWithParams()

_runPostWithParams (   $method = "post",
  $type = "parameter",
  $origine = "routes" 
)

Definition at line 560 of file UbiquityMyAdminBaseController.php.

◆ _seo()

_seo ( )
protected

Definition at line 318 of file UbiquityMyAdminBaseController.php.

◆ _setGetCookie()

_setGetCookie (   $index,
  $content 
)
private

Definition at line 726 of file UbiquityMyAdminBaseController.php.

◆ _setPostCookie()

_setPostCookie (   $content,
  $method = "post",
  $index = null 
)
private

Definition at line 711 of file UbiquityMyAdminBaseController.php.

◆ _showAllClassesDiagram()

_showAllClassesDiagram ( )

Definition at line 506 of file UbiquityMyAdminBaseController.php.

◆ _showDiagram()

_showDiagram ( )

Definition at line 418 of file UbiquityMyAdminBaseController.php.

◆ _updateAllClassesDiagram()

_updateAllClassesDiagram ( )

Definition at line 520 of file UbiquityMyAdminBaseController.php.

◆ _updateDiagram()

_updateDiagram ( )

Definition at line 460 of file UbiquityMyAdminBaseController.php.

◆ addNavigationTesting()

addNavigationTesting ( )
protected

Definition at line 258 of file UbiquityMyAdminBaseController.php.

◆ cache()

cache ( )

Definition at line 264 of file UbiquityMyAdminBaseController.php.

◆ config()

config (   $hasHeader = true)

Definition at line 294 of file UbiquityMyAdminBaseController.php.

◆ controllers()

controllers ( )

Definition at line 205 of file UbiquityMyAdminBaseController.php.

◆ finalize()

finalize ( )

Definition at line 126 of file UbiquityMyAdminBaseController.php.

◆ getAdminData()

getAdminData ( )
protected

Definition at line 880 of file UbiquityMyAdminBaseController.php.

◆ getHeader()

getHeader (   $key)
protected

Definition at line 408 of file UbiquityMyAdminBaseController.php.

◆ getRequiredRouteParameters()

getRequiredRouteParameters ( $url,
  $newParams = null 
)
private

Definition at line 793 of file UbiquityMyAdminBaseController.php.

◆ getSingleton()

getSingleton (   $value,
  $method 
)
private

Definition at line 896 of file UbiquityMyAdminBaseController.php.

◆ getTableNames()

getTableNames ( )
protected

Definition at line 934 of file UbiquityMyAdminBaseController.php.

◆ getUbiquityMyAdminFiles()

getUbiquityMyAdminFiles ( )
protected

Definition at line 892 of file UbiquityMyAdminBaseController.php.

◆ getUbiquityMyAdminModelViewer()

getUbiquityMyAdminModelViewer ( )
protected

Definition at line 888 of file UbiquityMyAdminBaseController.php.

◆ getUbiquityMyAdminViewer()

getUbiquityMyAdminViewer ( )
protected

Definition at line 884 of file UbiquityMyAdminBaseController.php.

◆ git()

git (   $hasMessage = true)

Definition at line 362 of file UbiquityMyAdminBaseController.php.

◆ index()

index ( )

Definition at line 154 of file UbiquityMyAdminBaseController.php.

◆ initialize()

initialize ( )

Definition at line 77 of file UbiquityMyAdminBaseController.php.

◆ initializeJs()

initializeJs ( )
protected

Definition at line 133 of file UbiquityMyAdminBaseController.php.

◆ logs()

logs ( )

Definition at line 304 of file UbiquityMyAdminBaseController.php.

◆ models()

models (   $hasHeader = true)

Definition at line 163 of file UbiquityMyAdminBaseController.php.

◆ rest()

rest ( )

Definition at line 279 of file UbiquityMyAdminBaseController.php.

◆ routes()

routes ( )

Definition at line 244 of file UbiquityMyAdminBaseController.php.

◆ seo()

seo ( )

Definition at line 311 of file UbiquityMyAdminBaseController.php.

◆ showDatabaseCreation()

showDatabaseCreation ( )

Definition at line 535 of file UbiquityMyAdminBaseController.php.

Field Documentation

◆ $adminData

$adminData
private

Definition at line 56 of file UbiquityMyAdminBaseController.php.

◆ $adminFiles

$adminFiles
private

Definition at line 68 of file UbiquityMyAdminBaseController.php.

◆ $adminModelViewer

$adminModelViewer
private

Definition at line 73 of file UbiquityMyAdminBaseController.php.

◆ $adminViewer

$adminViewer
private

Definition at line 62 of file UbiquityMyAdminBaseController.php.

◆ $globalMessage

$globalMessage
private

Definition at line 75 of file UbiquityMyAdminBaseController.php.


The documentation for this class was generated from the following file: