Lançado Adianti Framework 7.6!
Clique aqui para saber mais
menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class AdiantiCoreApplication

Description

Basic structure to run a web application

Located in /core/AdiantiCoreApplication.php (line 24)


	
			
Method Summary
static buildHttpQuery ($class, [$method = NULL], [$parameters = NULL])
static errorHandler ($errno, $errstr, $errfile, $errline)
static execute ($class, $method, $request, [$endpoint = null])
static executeMethod ($class, [$method = NULL], [$parameters = NULL])
static filterInput ()
static getDebugMode ()
static getHeaders ()
static getRequestId ()
static getRouter ()
static gotoPage ($class, [$method = NULL], [$parameters = NULL], [$callback = NULL])
static loadPage ($class, [$method = NULL], [$parameters = NULL])
static loadPageURL ($query, 1, 2)
static postData ($formName, $class, [$method = NULL], [$parameters = NULL])
static processRequest ($template)
static registerPage ($page)
static reload ()
static run ([$debug = FALSE])
static setRouter (Callable$callback)
Methods
static buildHttpQuery (line 349)

Build HTTP Query

  • access: public
static buildHttpQuery ($class, [$method = NULL], [$parameters = NULL])
  • $class: class name
  • $method: method name
  • $parameters: array of parameters
static errorHandler (line 414)

Handle Catchable Errors

  • access: public
static errorHandler ($errno, $errstr, $errfile, $errline)
  • $errno
  • $errstr
  • $errfile
  • $errline
static execute (line 150)

Execute internal method

  • access: public
static execute ($class, $method, $request, [$endpoint = null])
  • $class
  • $method
  • $request
  • $endpoint
static executeMethod (line 262)

Execute a specific method of a class with parameters

  • access: public
static executeMethod ($class, [$method = NULL], [$parameters = NULL])
  • $class: class name
  • $method: method name
  • $parameters: array of parameters
static filterInput (line 205)

Filter specific framework commands

  • access: public
static filterInput ()
static getDebugMode (line 464)

Returns the debug mode

  • access: public
static getDebugMode ()
static getHeaders (line 427)

Get request headers

  • access: public
static getHeaders ()
static getRequestId (line 456)

Returns the execution id

  • access: public
static getRequestId ()
static getRouter (line 250)

Get router callback

  • access: public
static getRouter ()
static gotoPage (line 289)

Goto a page

  • access: public
static gotoPage ($class, [$method = NULL], [$parameters = NULL], [$callback = NULL])
  • $class: class name
  • $method: method name
  • $parameters: array of parameters
  • $callback
static loadPage (line 304)

Load a page

  • access: public
static loadPage ($class, [$method = NULL], [$parameters = NULL])
  • $class: class name
  • $method: method name
  • $parameters: array of parameters
static loadPageURL (line 318)

Load a page url

  • access: public
static loadPageURL ($query, 1, 2)
  • 1: method name
  • 2: array of parameters
  • $query: class name
static postData (line 330)

Post data

  • access: public
static postData ($formName, $class, [$method = NULL], [$parameters = NULL])
  • $formName: class name
  • $class: method name
  • $method: array of parameters
  • $parameters
static processRequest (line 270)

Process request and insert the result it into template

  • access: public
static processRequest ($template)
  • $template
static registerPage (line 406)

Register URL

  • access: public
static registerPage ($page)
  • $page: URL to be registered
static reload (line 396)

Reload application

  • access: public
static reload ()
static run (line 35)

Execute class/method based on request

  • access: public
static run ([$debug = FALSE])
  • $debug: Activate Exception debug
static setRouter (line 242)

Set router callback

  • access: public
static setRouter (Callable$callback)
  • Callable$callback