Public Member Functions | |
zigController () | |
__construct () | |
retViewPath ($viewName) | |
Return Paths of View / Layout / Params file as an array. | |
commitViews () | |
Actually loads the View called automatically by index.php DONT CALL IT MANUALLY. | |
renderView ($viewName, $return=false) | |
Renders View View must be of this Project however it doesn't matter what Class is its Parent If you use just $this->renderView('viewName') it will search for the view file under your Controller Class If you use $this->renderView('controllerName.viewName') it will search for view file under the domein of the given controllerName. | |
queueAutoView ($viewName) | |
Queue one or more view(s) to be automatically rendered automatically after the action executes. | |
renderAutoView () | |
Render Auto views queued by $this->queueAutoView. | |
renderSharedView ($viewName, $projectName=null, $return=false) | |
Render a Shared View same as $this->renderView() except it searches for the view file in /usr/share/views if you supply a different Project name it will search for the view file in that project. | |
loadView ($viewName, $varList, $return=false) | |
loads a view NOT render remember load is not same as render as render makes all attributes aviliable locally on a view in the other hand load accepts an array/object and makes all keys local to that view. | |
loadSharedView ($viewName, $varList, $projectName=null, $return=false) | |
Loads Shared view from /usr/share/views same as $this->loadView() except it searches the view file from /usr/share/views if you supply a different Project shared view from that project will be loaded However load works Immedietly and render works after the execution of action logic has been ended. | |
switchLayout ($layoutName) | |
Switch View layout to another layout remember it will search for the layout in /usr/share/view/layout. | |
switchLayoutParams ($layoutParamsFile) | |
Switch layout Parameter file Remember the file must stay in /usr/share/view/params. | |
getLayoutParams ($var=null) | |
Get layout Params as an array However you get only those parameters that you set with setLayoutParams(). | |
setLayoutParams ($var, $value) | |
Set/Overrides Parameters for Layout. | |
setLayoutMeta ($metaTagStr) | |
Set HTML Meta Redirection in Layout. | |
multiLayout ($flag=true) | |
Turn on or Off Multiple Layout If its true Different Layouts(& Params) for Different Methods(Views) and if false Different Layout for Different Controllers(Classes). | |
noAutoViewRender ($flag=true) | |
If Its set to true the default view will not be rendered automatically by zigmoyd. | |
noLayout ($flag=true) | |
Turns No Layout On. | |
attachModel ($modelName, $projectName=null) | |
Atach more models. | |
flash ($msg, $exitFlag=false) | |
Flash a Text on the Screen Remember if a flash has been issued all views (loaded / rendered) gets Dropped. | |
redirect ($msg, $location, $timer=0) | |
Flashesd a Message on Screen and META redirect after a certain time(seconds). | |
headerRedirect ($path) | |
Redirect with a HTTp Header to the specified path. | |
forward ($httpErrorCode) | |
Forwarded the Page to an HTTP Error Page. | |
setHeader ($str) | |
Sets a HTTP header to be sent. | |
setContentType ($mimeType) | |
Set the Content-TYpe Header. | |
getHeaders () | |
returns list of headers going to be sent / has already been sent | |
getSentHeaders () | |
Returns array of sent headers. | |
validateForm ($validationMapName) | |
Initialize the Form validation. | |
validateGet ($validationMapName) | |
Same as validateForm however it validates Get request not Post Request. | |
loadOrm ($ormMapName, $projectName=null) | |
Load Orm map. | |
unloadTable ($ormClassName) | |
Unload a loaded Orm map. | |
getLoadedOrm () | |
List Currently loaded Orms. | |
getLoadedTables ($ormMapName=null) | |
List the Tables aviliable to you through the loaded Orm(s). | |
getLoadedTableAlias ($ormMapName=null) | |
List all loaded table Alias(s) may return array or object. | |
isPostRequest () | |
Check wheather the Request is a Post request Often used to make sure that the form has been posted or not Remember Upload request is also kinda post request so it will also returns true during an uploading request. | |
isPurePost () | |
Checks Wheather its a pure Post request or not. | |
isGetRequest () | |
Checks wheather the Request is a Get request or not. | |
isBlankGetRequest () | |
Check Wheather Its a Blnk Get Request or not Often used to make sure wheather its fresh request or not. | |
isUploadRequest () | |
Checks wheather its a file Upload Request or not. | |
getRequestParams () | |
Get HTTP request Headers/Parems. | |
getUrlRoot () | |
Return the url Root. | |
getCurrentUrl ($bindGet=false) | |
Returns teh Current Url e.g. | |
importStylesheet ($styleSheetName, $rewriteEngine=false) | |
Sets <link rel . | |
importJavaScript ($javaScriptsName, $rewriteEngine=false) | |
Queue's a js file to be loaded. | |
registerCache ($name, $type, $lifeTime=30) | |
Regester an object for to be Cached (While Caching Controller or Full Page use any Value for $name Ist Ignored). | |
doCache ($name, $type, $lifeTime, &$content) | |
Creates the cache. | |
cacheExists ($name, $type) | |
Checks wheather or not cache exists. | |
deleteCache ($name, $type) | |
Deletes Cache. | |
execCache ($name, $type) | |
Executes or Loads a Cache. | |
uSess ($sessId) | |
Unit Test Viewer. | |
registerFullCache () | |
Unknown. | |
registerControllerCache ($lifeTime=30) | |
Unknown. | |
registerRenderedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
registerLoadedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
registerRenderedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
registerLoadedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
existsFullCache () | |
Unknown. | |
existsControllerCache () | |
Unknown. | |
existsRenderedViewCache ($viewName) | |
Unknown. | |
existsLoadedViewCache ($viewName) | |
Unknown. | |
existsRenderedSharedViewCache ($viewName) | |
Unknown. | |
existsLoadedSharedViewCache ($viewName) | |
Unknown. | |
execFullCache () | |
Unknown. | |
execControllerCache ($lifeTime=30) | |
Unknown. | |
execRenderedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
execLoadedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
execRenderedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
execLoadedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
deleteFullCache () | |
Unknown. | |
deleteControllerCache ($lifeTime=30) | |
Unknown. | |
deleteRenderedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
deleteLoadedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
deleteRenderedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
deleteLoadedSharedViewCache ($viewName, $lifeTime=30) | |
Unknown. | |
Data Fields | |
$request | |
$load | |
$prjName | |
$className | |
$methodName | |
$layoutName = null | |
$layoutPath = null | |
$paramsPath = null | |
$paramsName = null | |
$viewQueue = array() | |
$ormList = array() | |
$params = array() | |
$multiLayout = false | |
$loadedOrms = array() | |
$db | |
$noAutoViewRender = false | |
$cacheConfig = array() | |
$cacheDict = array() | |
$cache | |
$noLayout = false | |
$postPeer | |
$getPeer |
All Controler(s) ultimately Inherits this Class.
Definition at line 34 of file zigController.php.
null
, string $return = false
)null
, string $return = false
)null
) null
)0
)null
)null
) null
) 30
)30
) 30
)30
)30
)30
)30
) 30
)30
)30
)30
)30
) 30
)30
)30
)30
)