Adianti Framework API
Adianti Framework API
4
AdiantiApplicationConfig
Application config
Methods
AdiantiApplicationLoader
Application loader
Methods
AdiantiAutocompleteService
Autocomplete backend
Methods
AdiantiClassMap
Class map
Methods
1/113
Adianti Framework API 7.4
AdiantiCoreApplication
Basic structure to run a web application
Methods
public static function gotoPage($class, $method = NULL, $parameters = NULL, $callback = NULL)
Goto a page
$class : class name
$method : method name
$parameters : array of parameters
2/113
Adianti Framework API 7.4
public static function registerPage($page)
Register URL
$page : URL to be registered
AdiantiCoreLoader
Framework class autoloader
Methods
AdiantiCoreTranslator
Framework translation class for internal messages
Methods
public static function translate($word, $param1 = NULL, $param2 = NULL, $param3 = NULL, $param4 = NULL)
Translate a word to the target language
$word : Word to be translated
3/113
Adianti Framework API 7.4
AdiantiDatabaseWidgetTrait
Methods
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
AdiantiFileSaveTrait
Methods
public function saveFile($object, $data, $input_name, $target_path)
Save file
$object : Active Record
$data : Form data
$input_name : Input field name
$target_path : Target file path
4/113
Adianti Framework API 7.4
public function loadBinaryFiles($object, $model_files, $attr_file_name, $file_field, $foreign_key)
Save binary files on tmp and return paths
$object : Active Record
$model_files : Files Active Record
$attr_file_name : Active field name for name file
$file_field : File field in model_files
$foreign_key : Foreign key to $object
AdiantiHttpClient
Basic HTTP Client request
Methods
public static function request($url, $method = 'POST', $params = [], $authorization = null)
Execute a HTTP request
$url : URL
$method : method type (GET,PUT,DELETE,POST)
$params : request body
AdiantiMasterDetailTrait
Methods
public function storeItems($model, $foreign_key, $master_object, $detail_id, Callable $transformer = null)
Store an item from details session into database
$model : Model class name
$foreign_key : Detail foreign key name
$master_object : Master object
$detail_id : Detail key in session
$transformer : Function to be applied over the objects
AdiantiMultiSearchService
MultiSearch backend
Methods
AdiantiRecordService
Record rest service
Methods
5/113
Adianti Framework API 7.4
Delete an Active Record object from the database
[$id] : HTTP parameter
AdiantiStandardCollectionTrait
Methods
public function setLimit($limit)
method setLimit() Define the record limit
6/113
Adianti Framework API 7.4
public function onSearch( $param = null )
Register the filter in the session
AdiantiStandardControlTrait
Methods
public function setDatabase($database)
method setDatabase() Define the database
AdiantiStandardFormListTrait
Methods
public function setLimit($limit)
method setLimit() Define the record limit
7/113
Adianti Framework API 7.4
public function Delete($param)
method Delete() Delete a record
AdiantiStandardFormTrait
Methods
public function setAfterSaveAction($action)
method setAfterSaveAction() Define after save action
AdiantiStandardListExportTrait
Methods
public function onExportCSV($param)
Export to CSV
8/113
Adianti Framework API 7.4
public function exportToCSV($output)
Export to CSV
$output : Output file
AdiantiStandardListTrait
Methods
public function enableTotalRow()
Enable total row
9/113
Adianti Framework API 7.4
public function setTransformer($callback)
Define a callback method to transform objects before load them into datagrid
AdiantiStringConversion
10/113
Adianti Framework API 7.4
String manipulation
Methods
AdiantiTemplateHandler
Template manipulation
Methods
AdiantiTemplateParser
Template parser
11/113
Adianti Framework API 7.4
Methods
AdiantiUploaderService
File uploader listener
Methods
function show($param)
function getMaximumFileUploadSizeFormatted()
function getMaximumFileUploadSize()
function convertSizeToBytes($size)
BootstrapDatagridWrapper
Bootstrap datagrid decorator for Adianti Framework
Methods
12/113
Adianti Framework API 7.4
public function setActionWidth($width)
Set the column action width
13/113
Adianti Framework API 7.4
$object : An Active Record Object
public function addQuickColumn($label, $name, $align = 'left', $size = 200, TAction $action = NULL, $param = NULL)
Add a column
$label : Field Label
$object : Field Object
$size : Field Size
BootstrapFormBuilder
Bootstrap form builder for Adianti Framework
Methods
14/113
Adianti Framework API 7.4
public function setClientValidation($bool)
Turn on/off client validation
15/113
Adianti Framework API 7.4
public function getField($name)
Return form field
$name : Field name
16/113
Adianti Framework API 7.4
$label : Button label
$action : Button action
$icon : Button icon
BootstrapFormWrapper
Bootstrap form decorator for Adianti Framework
Methods
17/113
Adianti Framework API 7.4
public function setName($name)
Set form name
public function addQuickField($label, AdiantiWidgetInterface $object, $size = 200, TFieldValidator $validator = NULL,
$label_size = NULL)
18/113
Adianti Framework API 7.4
Add a form field
$label : Field Label
$object : Field Object
$size : Field Size
$validator : Field Validator
BootstrapNotebookWrapper
Bootstrap datagrid decorator for Adianti Framework
Methods
19/113
Adianti Framework API 7.4
$sensibility : If the tabs will be sensible to click
TAPCache
Adianti APC Record Cache
Methods
20/113
Adianti Framework API 7.4
TAction
Structure to encapsulate an action
Methods
public function __construct($value, TAction $action, $color = null, $size = null, $decoration = null, $icon = null)
21/113
Adianti Framework API 7.4
Class Constructor
$value : text content
$action : TAction Object
$color : text color
$size : text size
$decoration : text decorations (b=bold, i=italic, u=underline)
TAdiantiCoreTranslator
Framework translation class for internal messages
Methods
public static function translate($word, $param1 = NULL, $param2 = NULL, $param3 = NULL, $param4 = NULL)
Translate a word to the target language
$word : Word to be translated
22/113
Adianti Framework API 7.4
public static function clearField($name)
Clear currents item on steps
$name : name of arrow steps
23/113
Adianti Framework API 7.4
$fontColor : string to color font
24/113
Adianti Framework API 7.4
Set change function
25/113
Adianti Framework API 7.4
public function setImage($image)
Define the icon of the button
$image : image path
26/113
Adianti Framework API 7.4
Methods
27/113
Adianti Framework API 7.4
public function setContentAttribute($field)
Set content attribute
$field : attribute name
public function addAction(TAction $action, $label, $icon = NULL, $display_condition = NULL, $title = NULL)
Add item action
$label : Action label
$action : Action callback (TAction)
$icon : Action icon
$display_condition : Display condition
28/113
Adianti Framework API 7.4
Shows the widget at the screen
29/113
Adianti Framework API 7.4
public static function reload($formname, $name, $items, $options)
Reload checkbox items after it is already shown
$formname : form name (used in gtk version)
$name : field name
$items : array with items
$options : array of options [layout, size, breakItems, useButton, valueSeparator, value, changeAction,
changeFunction, checkAll]
TCheckList
Checklist
Methods
function getSize()
Returns checklist size
30/113
Adianti Framework API 7.4
Returns the selected ids
public function fillWith($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria = NULL)
Fill with model objects
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
31/113
Adianti Framework API 7.4
public function __construct($name)
Class Constructor
$name : Name of the widget
32/113
Adianti Framework API 7.4
Add items to the combo box
$items : An indexed array containing the combo options
public static function reload($formname, $name, $items, $startEmpty = FALSE, $fire_events = TRUE)
Reload combobox items after it is already shown
$formname : form name (used in gtk version)
$name : field name
$items : array with items
$startEmpty : if the combo will have an empty first item
$fire_events : If change action will be fired
TConnection
Singleton manager for database connections
Methods
33/113
Adianti Framework API 7.4
$database : Name of the database (an INI file).
34/113
Adianti Framework API 7.4
public function setCaseInsensitive(bool $value) : void
Force case insensitive searches
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function reloadFromModel($formname, $field, $database, $model, $key, $value, $ordercolumn = NULL,
$criteria = NULL, $options = [])
Reload checkbox from model data
$formname : form name
$field : field name
$database : database name
$model : model class name
$key : table field to be used as key in the checkbox
$value : table field to be listed in the checkbox
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
$options : array of options [layout, breakItems, useButton, value, valueSeparator, changeAction, changeFunction]
35/113
Adianti Framework API 7.4
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function reloadFromModel($formname, $field, $database, $model, $key, $value, $ordercolumn = NULL,
$criteria = NULL, $startEmpty = FALSE, $fire_events = TRUE)
Reload combo from model data
$formname : form name
$field : field name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
$startEmpty : if the combo will have an empty first item
$fire_events : if change action will be fired
36/113
Adianti Framework API 7.4
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
public function __construct($name, $database, $model, $value, $orderColumn = NULL, TCriteria $criteria = NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public function __construct($name, $database, $model, $key, $value, $orderColumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
37/113
Adianti Framework API 7.4
Disable search by id
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function reloadFromModel($formname, $field, $database, $model, $key, $value, $ordercolumn = NULL,
$criteria = NULL, $options = [])
Reload radio from model data
$formname : form name
$field : field name
$database : database name
$model : model class name
$key : table field to be used as key in the radio
$value : table field to be listed in the radio
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
$options : array of options [layout, breakItems, useButton, value, changeAction, changeFunction]
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
38/113
Adianti Framework API 7.4
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
39/113
Adianti Framework API 7.4
Methods
public function __construct($name, $database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : widget's name
$database : database name
$model : model class name
$key : table field to be used as key in the combo
$value : table field to be listed in the combo
$ordercolumn : column to order the fields (optional)
$criteria : criteria (TCriteria object) to filter the model (optional)
public static function getItemsFromModel($database, $model, $key, $value, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get items (key/value) from database to populate widget
public static function getObjectsFromModel($database, $model, $key, $ordercolumn = NULL, TCriteria $criteria =
NULL)
Get objects from database to populate widget
public function __construct($name, $database, $model, $key, $value, $orderColumn = NULL, TCriteria $criteria =
NULL)
Class Constructor
$name : Widget's name
40/113
Adianti Framework API 7.4
public function generateHiddenFields()
Generate hidden fields
41/113
Adianti Framework API 7.4
Creates the DataGrid Structure
42/113
Adianti Framework API 7.4
public function show()
Shows the DataGrid
43/113
Adianti Framework API 7.4
Callback : $displayCondition Action display condition
TDataGridActionGroup
Represents a group of Actions for datagrids
Methods
TDataGridColumn
Representes a DataGrid column
Methods
44/113
Adianti Framework API 7.4
public function setVisibility($bool)
Define column visibility
45/113
Adianti Framework API 7.4
public function removeAction()
Remove action
public function enableTotal($function, $prefix = null, $decimals = 2, $decimal_separator = ',', $thousand_separator = '.')
Enable total
TDatabase
Database Task manager
Methods
46/113
Adianti Framework API 7.4
public static function addColumn($conn, $table, $column, $type, $options)
Add column
$conn : Connection
$table : Table name
$column : Column name
$type : Column type
$options : Column options
public static function getData($conn, $query, $mapping = null, $prepared_values = null, Closure $action = null)
Get RAW Data
$conn : Connection
$query : SQL
$mapping : Mapping between fields
$prepared_values : Parameters for SQL Query
public static function copyData(PDO $source_conn, PDO $target_conn, $source_table, $target_table, $mapping,
$criteria = null, $bulk_inserts = 1, $auto_commit = false)
Copy data from table to table
$source_conn : PDO source connection
$target_conn : PDO target connection
$source_table : Source table
$target_table : Target table
$mapping : Mapping between fields
$criteria : Filter criteria
$bulk_inserts : Inserts per time
$auto_commit : Auto commit after x inserts
public static function copyQuery(PDO $source_conn, PDO $target_conn, $query, $target_table, $mapping,
$prepared_values = null, $bulk_inserts = 1, $auto_commit = false)
Copy data from query to table
$source_conn : PDO source connection
$target_conn : PDO target connection
$query : SQL Query
47/113
Adianti Framework API 7.4
$target_table : Target table
$mapping : Mapping between fields
$prepared_values : Parameters for SQL Query
$bulk_inserts : Inserts per time
$auto_commit : Auto commit after x inserts
public static function importFromFile($filename, $target_conn, $target_table, $mapping, $separator = ',', $bulk_inserts =
1)
Import data from CSV file
$filename : CSV File to import
$target_conn : Target connection
$target_table : Target table
$mapping : Mapping between fields
$separator : Columns separator [,]
public static function exportToFile($source_conn, $source_table, $filename, $mapping, $criteria = null, $separator = ',')
Export data to CSV file
$source_conn : Source connection
$source_table : Target table
$filename : CSV File to import
$mapping : Mapping between fields
$criteria : Select criteria
$separator : Columns separator [,]
48/113
Adianti Framework API 7.4
Define the action to be executed when the user changes the field
$action : TAction object
49/113
Adianti Framework API 7.4
$action : TAction object
public function __construct($label, $icon = NULL, $use_caret = FALSE, $title = '', $height = null)
Class Constructor
$title : Dropdown title
$icon : Dropdown icon
public function addAction($title, $action, $icon = NULL, $popover = '', $add = true)
Add an action
$title : Title
$action : Action (TAction or string Javascript action)
$icon : Icon
public function addPostAction($title, $action, $form, $icon = NULL, $popover = '', $add = true)
Add an action
$title : Title
$action : Action (TAction or string Javascript action)
$icon : Icon
50/113
Adianti Framework API 7.4
public function addHeader($header)
Add a header
$header : Options Header
TElement
Base class for all HTML Elements
Methods
51/113
Adianti Framework API 7.4
Return element properties
52/113
Adianti Framework API 7.4
public function validate($label, $value, $parameters = NULL)
Validate a given value
$label : Identifies the value to be validated in case of exception
$value : Value to be validated
$parameters : aditional parameters for validation
function setCompletion($options)
Define options for completion
$options : array of options for completion
53/113
Adianti Framework API 7.4
public function forceUpperCase()
Force upper case
TExceptionView
Exception visualizer
Methods
54/113
Adianti Framework API 7.4
Add content to the expander
$content : Any Object that implements show() method
TExpression
Base class for TCriteria and TFilter (composite pattern implementation)
Methods
TField
Base class to construct all the widgets
Methods
55/113
Adianti Framework API 7.4
public function getPostData()
Return the post data
56/113
Adianti Framework API 7.4
57/113
Adianti Framework API 7.4
Add detail row
$item : Data object
TFieldValidator
TFieldValidator abstract validation class
Methods
58/113
Adianti Framework API 7.4
public function setService($service)
Define the service class for response
59/113
Adianti Framework API 7.4
public function getPreparedVars()
Return the prepared vars
TForm
Wrapper class to deal with forms
Methods
public static function sendData($form_name, $object, $aggregate = FALSE, $fireEvents = TRUE, $timeout = 0)
Send data for a form located in the parent window
$form_name : Form Name
$object : An Object containing the form data
60/113
Adianti Framework API 7.4
$field : Object
61/113
Adianti Framework API 7.4
public function setFontColor($color)
Set font color
$color : font color
62/113
Adianti Framework API 7.4
public function setReloadAction(TAction $action)
Define the reload action
$action : reload action
public function addEvent($id, $title, $start, $end = NULL, $url = NULL, $color = NULL, $object = NULL)
Add an event
$id : Event id
$title : Event title
$start : Event start time
$end : Event end time
$url : Event url
$color : Event color
63/113
Adianti Framework API 7.4
public static function pack()
Static method for pack content
$cells : Each argument is a cell
function setCompletion($options)
Define options for completion
$options : array of options for completion
64/113
Adianti Framework API 7.4
$field : Field name
THtmlRenderer
Html Renderer
Methods
public function __construct($value, $location, $color = null, $size = null, $decoration = null, $icon = null)
Class Constructor
$value : text content
$location : link location
$color : text color
$size : text size
$decoration : text decorations (b=bold, i=italic, u=underline)
65/113
Adianti Framework API 7.4
66/113
Adianti Framework API 7.4
Define the field that will identify the icon
public function addContextMenuOption($label, $action = null, $icon = null, /*Callable*/ $displayCondition = null)
Add a context menu option
67/113
Adianti Framework API 7.4
Disable buttons drag move | resize
TInputDialog
Input Dialog
Methods
public function __construct($title_msg, AdiantiFormInterface $form, TAction $action = NULL, $caption = '')
Class Constructor
$title_msg : Dialog Title
$form : Dialog form body
$action : Action to be processed when closing the dialog
$caption : Button caption
68/113
Adianti Framework API 7.4
public function __construct()
Class Constructor
$name : Name of the widget
69/113
Adianti Framework API 7.4
$order : Stack order
public function addItem($id, $stage_id, $title, $content, $color = null, $object = null)
Add item to stage
$id : Item id
$stage_id : Stage id
$title : Item title
$content : Item content
$color : Item color
$object : Item data object
70/113
Adianti Framework API 7.4
public function addItemAction($label, TAction $action, $icon = NULL, $display_condition = NULL)
Add item action
$label : Action label
$action : Action callback (TAction)
$icon : Action icon
$display_condition : Display condition
public function __construct($value, $color = null, $fontsize = null, $decoration = null, $size = null)
Class Constructor
$value : text label
function add($content)
Add a content inside the label
$content :
TLogger
Provides an abstract interface to register LOG files
71/113
Adianti Framework API 7.4
Methods
72/113
Adianti Framework API 7.4
$value : Value to be validated
$parameters : aditional parameters for validation (length)
73/113
Adianti Framework API 7.4
Methods
TMenuParser
Menu Parser
Methods
74/113
Adianti Framework API 7.4
Check if a module exists
TMessage
Message Dialog
Methods
75/113
Adianti Framework API 7.4
public static function enableField($form_name, $field)
Enable the field
$form_name : Form name
$field : Field name
76/113
Adianti Framework API 7.4
function setCompleteAction(TAction $action)
Define the action to be executed when the user leaves the form field
$action : TAction object
77/113
Adianti Framework API 7.4
public static function enableField($form_name, $field)
Enable the field
$form_name : Form name
$field : Field name
78/113
Adianti Framework API 7.4
public function setTabAction(TAction $action)
Define the action for the Notebook tab
$action : Action taken when the user clicks over Notebook tab (A TAction object)
79/113
Adianti Framework API 7.4
public static function include_css($css)
Include a specific Cascading Stylesheet to this page
$css : Cascading Stylesheet
TPageNavigation
Page Navigation provides navigation for a datagrid
Methods
80/113
Adianti Framework API 7.4
public function setFirstPage($first_page)
Define the first page
$page : An integer (the first page)
81/113
Adianti Framework API 7.4
$widget : = widget to be shown
$col : = column in pixels.
$row : = row in pixels.
82/113
Adianti Framework API 7.4
function setExitAction(TAction $action)
Define the action to be executed when the user leaves the form field
$action : TAction object
TQuestion
Question Dialog
83/113
Adianti Framework API 7.4
Methods
public function __construct($message, TAction $action_yes = NULL, TAction $action_no = NULL, $title_msg = '',
$label_yes = '', $label_no = '')
Class Constructor
$message : A string containint the question
$action_yes : Action taken for YES response
$action_no : Action taken for NO response
$title_msg : Dialog Title
public function addQuickField($label, AdiantiWidgetInterface $object, $size = 200, TFieldValidator $validator = NULL,
$label_size = NULL)
Add a form field
$label : Field Label
$object : Field Object
$size : Field Size
$validator : Field Validator
84/113
Adianti Framework API 7.4
$label : Action Label
$action : TAction Object
$icon : Action Icon
public function addQuickColumn($label, $name, $align = 'left', $size = 200, TAction $action = NULL, $param = NULL)
Add a column
$label : Field Label
$object : Field Object
$size : Field Size
85/113
Adianti Framework API 7.4
public function appendPage($title, $container = NULL)
Append a notebook page
$title : Page title
$cotnainer : Page container
86/113
Adianti Framework API 7.4
public function addItems($items)
Add items to the radio group
$items : An indexed array containing the options
TRecord
Base class for Active Records
Methods
87/113
Adianti Framework API 7.4
public function getCacheControl()
Returns the cache control
88/113
Adianti Framework API 7.4
public function load($id)
Load an Active Record Object from the database
$id : The object ID
89/113
Adianti Framework API 7.4
$aggregate_class : Active Record Class for aggregated objects
$join_class : Active Record Join Class (Parent / Aggregated)
$foreign_key_parent : Foreign key in Join Class to parent object
$foreign_key_child : Foreign key in Join Class to child object
$id : Primary key of parent object
90/113
Adianti Framework API 7.4
public static function take($limit)
Creates a Repository with limit
TRepository
Implements the Repository Pattern to deal with collections of Active Records
Methods
91/113
Adianti Framework API 7.4
$limit : = Limit
92/113
Adianti Framework API 7.4
public function minBy($column, $alias = null)
Min aggregate
$column : Column to be aggregated
$alias : Column alias
93/113
Adianti Framework API 7.4
public function validate($label, $value, $parameters = NULL)
Validate a given value
$label : Identifies the value to be validated in case of exception
$value : Value to be validated
$parameters : aditional parameters for validation
TScript
Base class for scripts
Methods
94/113
Adianti Framework API 7.4
public function setUseOutEvent($bool)
Define it the out event will be fired
95/113
Adianti Framework API 7.4
Define the Field's width
$width : Field's width in pixels
$height : Field's height in pixels
TSession
Session Data Handler
Methods
96/113
Adianti Framework API 7.4
public static function enabled()
Returns if the service is active
97/113
Adianti Framework API 7.4
$name : widget's name
TSourceCode
SourceCode View
98/113
Adianti Framework API 7.4
Methods
99/113
Adianti Framework API 7.4
Methods
100/113
Adianti Framework API 7.4
public function addColumn($column)
Add a column name to be returned
$column : A string containing a column name
TSqlStatement
Provides an abstract Interface to create a SQL statement
Methods
101/113
Adianti Framework API 7.4
public function getPreparedVars()
Return the prepared vars
102/113
Adianti Framework API 7.4
public function onDelete($param)
method onDelete() executed whenever the user clicks at the delete button Ask if the user really wants to delete the
record
103/113
Adianti Framework API 7.4
public function addFilterField($filterField, $operator = 'like', $formFilter = NULL, $filterTransformer = NULL,
$logic_operator = TExpression::AND_OPERATOR)
method addFilterField() Add a field that will be used for filtering
$filterField : Field name
$operator : Comparison operator
104/113
Adianti Framework API 7.4
$output : Output file
105/113
Adianti Framework API 7.4
TStyle
StyleSheet Manager
Methods
106/113
Adianti Framework API 7.4
107/113
Adianti Framework API 7.4
Force upper case
108/113
Adianti Framework API 7.4
public function addItem( $id, $title, $content, $date, $icon, $align = null, $object = null )
Add Item
$id : ID
$title : Title
$content : Item content
$date : Item date
$icon : Item icon
$align : Item align
$object : Item data object
TToast
Toast
Methods
public static function show($type, $message, $place = 'bottom center', $icon = null)
Class Constructor
109/113
Adianti Framework API 7.4
$message : Message to be shown
TTransaction
Manage Database transactions
Methods
110/113
Adianti Framework API 7.4
Methods
111/113
Adianti Framework API 7.4
public function __construct()
Class Constructor
112/113
Adianti Framework API 7.4
public function setMinWidth($percent, $absolute)
Define the window's min width between percent and absolute
$percent : width
$absolute : width
113/113