Manually Developed CI Controller
This controller facilitates the access of table countries
Usage:-
function index()
function AppIntegrator_wb()
function key_validate(), Validates key entries
function delete()
function createDropdown()
function is_name_uniqe(), Checks uniqness of a given name
function edit(), Prepares edit form for a given record
function save(), Saves add/edit form data
function addForm(), Prepares add form to add new record
function replace_para_maccro(), Replaces parameter maccro values with values
function crosscheck_uaacs_functions(), Crossches with supplied function ids and user ids
function prepare_xml_feed_functions(), Prepares functions obtaind from xml feed
function prepare_function_paras(), Prepares function pars obtaind from xml feed
function prepare_qstring_builder(), Prepares querystring builder popup
package |
AIR\controllers\AppIntegrator |
---|---|
version |
V1.2.0 |
copyright |
2015, BizyCorp Internal Systems Development |
license |
private, All rights reserved |
author |
MRM Roshan |
created |
July 2014 |
uses | |
see | |
modified | |
modification |
__construct() : void
This constructer function checks for user session and loads the relevant models
access |
public |
---|
addForm() : void
This function loads AIR links add form with pre defined structure which also validates entered data when submitted
access |
protected |
---|---|
since | |
modified |
Jun 17, 2016 by Roshan Ruzaik mrmroshan@yahoo.com |
modification |
Fixed bug id 21882 |
AppIntegrator_wb()
This method will call AIR work bench file for data listing and processing
Send to view - $data array with template id
check_xmlfeed_and_app_id()
This function maks sure both xml feed and application ids are correct combination. accepts 2 query strings xml_feed_url and app_id
string xml_feed_url string app_id
createDropdown(array $data = false)
createDropdown is the component function. Its main functionality is to produce a dropdown with pre populated table data
Parameter list :-
$data['selectByValue'] => null - preselection of list items by value
$data['selectBYText'] => null - preselection of list items by Text
$data['filterBy'] => null - filter data set by a field or list
$data['outFormat'] => 'html' - Format of the output like HTML,XML Etc
$data['isMultiple'] => false - is the drop down with multi select capable
$data['sort'] => 'asc' - sort list text Ascending or Descending
$data['optionsOnly'] => false - Specify the controller that output only
Usage :-
1) Format for internal functional call by passing data array
$data = array('selectByValue' => null, 'selectBYText' => null, 'outFormat' => 'html' , 'isMultiple' => false, 'sort' => 'asc', 'optionsOnly' => false, 'filterBy' => array( 'search_field' => 'T.status', 'search_text' => '0', 'query_method'=>'equal', 'order_by' => 'asc' ) )
2) Format of external call by URL
Description of parameter list,
sbv - selectByValue => null sbt - selectBYText => null format - outFormat => 'html' multiple - isMultiple=> false sort - sort => 'asc' filterby - filterBy => null optionsOnly - options only listing
array
data array to create dropdown
crosscheck_uaacs_functions(object $uaacs_functions_obj, object $share_functions_obj, string $appType = null) : boolean
This function crosschechks all function ids of $share_functions_obj against $uaacs_functions_obj This function checks all function ids of share functions obj are present on uaacs functions object. if any one function id is missing this will return false
object
object
string
boolean
delete(string $id = null) : void
This function deletes given record by id
access |
public |
---|---|
since | |
modified |
Jun 17, 2016 by Roshan Ruzaik mrmroshan@yahoo.com |
modification |
Fixed bug id 20500,20499,20501 |
string
edit(string $ids = null, string $form_lable = null) : void
access |
public |
---|---|
since | |
modified |
Jun 17, 2016 by Roshan Ruzaik mrmroshan@yahoo.com |
modification |
Fixed bug id 21212 |
string
string
index( $search = FALSE, $limit, $offset, $file = 'appIntegrator_grid_index', $format = 'xml') : array
This is the main function that produce the AIR listings output using various view formats passed as params.
access |
public |
---|
array
data feed for grid
is_name_uniqe(integer $id, string $name)
This method checks for uniqeness of a given linkage name
integer
string
key_validate(string $action, array $key) : boolean|\multitype:string
This function checks for duplicate key entries
string
array
boolean|\multitype:string
prepare_function_paras(string $editUrl = null, string $func_id = null)
This function prepares add/edit form with parameters fields after getting information from share_function xml feed
string
string
prepare_qstring_builder()
This fuction prepares querystring builder popup. So then users can specify required querystrings along with the url. This function is called by AJAX
prepare_xml_feed_functions(string $editUrl = null, string $editId = null) : string
This function prepares add/edit forms with proper form input elements after getting the share function xml feeds.
string
string
string
replace_para_maccro(array $para) : array
This function is used for replacing macro variables (ex:-@@var@@) of $para data.
array
array
save(string $action = null, string $callback = null) : integer
This function save or update supplied data from add/edit form
string
string
integer
new record id
debug : \boolien
var |
---|
\boolien
log_obj : \obj
var |
---|
\obj