PHP Класс CrudKit\CrudKitApp

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$jsonResponse
$login
$pageById array
$pages array[BasePage]
$readOnly
$redirect
$staticRoot
$title

Открытые методы

Метод Описание
__construct ( )
_requestRedirect ( $url )
addPage ( $page )
getAppName ( )
getDefaultPage ( )
getPageById ( $id ) : CrudKit\Pages\Page
getPages ( )
getStaticRoot ( )
getUserParams ( )
isJsonResponse ( ) : boolean
isReadOnly ( )
render ( ) Render your CrudKit app and output to HTML
renderToString ( ) Render your CrudKit app and return it as a string
setAppName ( $title )
setJsonResponse ( boolean $jsonResponse )
setReadOnly ( $readOnlyFlag )
setStaticRoot ( $staticRoot ) Set a static root which contains the "crudkit/" directory of css and JS
useLogin ( $login )

Описание методов

__construct() публичный метод

public __construct ( )

_requestRedirect() публичный метод

public _requestRedirect ( $url )

addPage() публичный метод

public addPage ( $page )
$page Page

getAppName() публичный метод

public getAppName ( )

getDefaultPage() публичный метод

public getDefaultPage ( )

getPageById() публичный метод

public getPageById ( $id ) : CrudKit\Pages\Page
$id
Результат CrudKit\Pages\Page

getPages() публичный метод

public getPages ( )

getStaticRoot() публичный метод

public getStaticRoot ( )

getUserParams() публичный метод

public getUserParams ( )

isJsonResponse() публичный метод

public isJsonResponse ( ) : boolean
Результат boolean

isReadOnly() публичный метод

public isReadOnly ( )

render() публичный метод

Render your CrudKit app and output to HTML
public render ( )

renderToString() публичный метод

Render your CrudKit app and return it as a string
public renderToString ( )

setAppName() публичный метод

public setAppName ( $title )

setJsonResponse() публичный метод

public setJsonResponse ( boolean $jsonResponse )
$jsonResponse boolean

setReadOnly() публичный метод

public setReadOnly ( $readOnlyFlag )

setStaticRoot() публичный метод

Set a static root which contains the "crudkit/" directory of css and JS
public setStaticRoot ( $staticRoot )
$staticRoot

useLogin() публичный метод

public useLogin ( $login )

Описание свойств

$jsonResponse защищенное свойство

protected $jsonResponse

$login защищенное свойство

protected $login

$pageById защищенное свойство

protected array $pageById
Результат array

$pages защищенное свойство

protected array[BasePage] $pages
Результат array[BasePage]

$readOnly защищенное свойство

protected $readOnly

$redirect защищенное свойство

protected $redirect

$staticRoot защищенное свойство

protected $staticRoot

$title защищенное свойство

protected $title