CODE STYLE Format

Changes in format file
This commit is contained in:
norahmollo
2012-10-23 19:23:58 +00:00
parent 757d79242b
commit 266937e496

View File

@@ -41,72 +41,72 @@ G::LoadClass( "ArrayPeer" );
class propelTable class propelTable
{ {
var $xmlFormFile; public $xmlFormFile;
var $currentPage; public $currentPage;
var $orderBy = ''; public $orderBy = '';
var $filter = array (); public $filter = array ();
var $filterType = array (); public $filterType = array ();
var $searchBy = ''; public $searchBy = '';
var $fastSearch = ''; public $fastSearch = '';
var $order = ''; public $order = '';
var $template = 'templates/paged-table.html'; public $template = 'templates/paged-table.html';
var $tpl; public $tpl;
var $style = array (); public $style = array ();
var $rowsPerPage = 25; public $rowsPerPage = 25;
var $ownerPage; public $ownerPage;
var $popupPage; public $popupPage;
var $popupSubmit; public $popupSubmit;
var $popupWidth = 450; public $popupWidth = 450;
var $popupHeight = 200; public $popupHeight = 200;
var $ajaxServer; public $ajaxServer;
var $fields; public $fields;
var $query; public $query;
var $totPages; public $totPages;
var $totRows; public $totRows;
//SQL QUERIES //SQL QUERIES
var $criteria; public $criteria;
var $sql = ''; public $sql = '';
var $sqlWhere = ''; public $sqlWhere = '';
var $sqlGroupBy = ''; public $sqlGroupBy = '';
var $sqlSelect = 'SELECT 1'; public $sqlSelect = 'SELECT 1';
var $sqlDelete = ''; public $sqlDelete = '';
var $sqlInsert = ''; public $sqlInsert = '';
var $sqlUpdate = ''; public $sqlUpdate = '';
var $fieldDataList = ''; public $fieldDataList = '';
//Configuration //Configuration
var $xmlPopup = ''; public $xmlPopup = '';
var $addRow = false; public $addRow = false;
var $deleteRow = false; public $deleteRow = false;
var $editRow = false; public $editRow = false;
var $notFields = ' title button linknew begingrid2 endgrid2 '; // These are not considered to build the sql queries (update,insert,delete) public $notFields = ' title button linknew begingrid2 endgrid2 '; // These are not considered to build the sql queries (update,insert,delete)
//JavaScript Object attributes //JavaScript Object attributes
var $onUpdateField = ""; public $onUpdateField = "";
var $onDeleteField = ""; public $onDeleteField = "";
var $afterDeleteField = ""; public $afterDeleteField = "";
var $onInsertField = ""; public $onInsertField = "";
//New gulliver //New gulliver
var $xmlForm; public $xmlForm;
var $menu = ''; public $menu = '';
var $filterForm = ''; public $filterForm = '';
var $filterForm_Id = ''; public $filterForm_Id = '';
var $name = 'pagedTable'; public $name = 'pagedTable';
var $id = 'A1'; public $id = 'A1';
var $disableFooter = false; public $disableFooter = false;
//This attribute is used to set STYLES to groups of TD, using the field type "cellMark" (see XmlForm_Field_cellMark) //This attribute is used to set STYLES to groups of TD, using the field type "cellMark" (see XmlForm_Field_cellMark)
var $tdStyle = ''; public $tdStyle = '';
var $tdClass = ''; public $tdClass = '';
//Config Save definition //Config Save definition
var $__Configuration = 'orderBy,filter,fastSearch,style/*/showInTable'; //order,rowsPerPage,disableFooter'; public $__Configuration = 'orderBy,filter,fastSearch,style/*/showInTable'; //order,rowsPerPage,disableFooter';
//Variable for MasterDetail feature //Variable for MasterDetail feature
var $masterdetail = ''; public $masterdetail = '';
var $title; public $title;
/** /**
* Function prepareQuery * Function prepareQuery
@@ -116,7 +116,7 @@ class propelTable
* @param string $limitPage * @param string $limitPage
* @return string * @return string
*/ */
function prepareQuery ($limitPage = false) public function prepareQuery ($limitPage = false)
{ {
// process the QuickSearch string and add the fields and expression needed to run the search // process the QuickSearch string and add the fields and expression needed to run the search
if ($this->searchBy !== '') { if ($this->searchBy !== '') {
@@ -212,7 +212,7 @@ class propelTable
* @param eter string xmlForm * @param eter string xmlForm
* @return string * @return string
*/ */
function setupFromXmlform ($xmlForm) public function setupFromXmlform ($xmlForm)
{ {
$this->xmlForm = $xmlForm; $this->xmlForm = $xmlForm;
//Config //Config
@@ -308,7 +308,7 @@ class propelTable
* @access public * @access public
* @return string * @return string
*/ */
function count () public function count ()
{ {
$this->prepareQuery(); $this->prepareQuery();
return $this->totRows; return $this->totRows;
@@ -321,7 +321,7 @@ class propelTable
* @access public * @access public
* @return string * @return string
*/ */
function renderTitle () public function renderTitle ()
{ {
//fix the bug about showing hidden fields in propel table. //fix the bug about showing hidden fields in propel table.
foreach ($this->fields as $r => $rval) { foreach ($this->fields as $r => $rval) {
@@ -391,7 +391,7 @@ class propelTable
* @param eter string result * @param eter string result
* @return string * @return string
*/ */
function renderField ($row, $r, $result) public function renderField ($row, $r, $result)
{ {
global $G_DATE_FORMAT; global $G_DATE_FORMAT;
//to do: special content?? //to do: special content??
@@ -468,7 +468,7 @@ class propelTable
* @access public * @access public
* @return string * @return string
*/ */
function defaultStyle () public function defaultStyle ()
{ {
foreach ($this->fields as $r => $rval) { foreach ($this->fields as $r => $rval) {
$this->style[$r] = array ('showInTable' => '1','titleVisibility' => '1','colWidth' => '150','onclick' => '','event' => '' $this->style[$r] = array ('showInTable' => '1','titleVisibility' => '1','colWidth' => '150','onclick' => '','event' => ''
@@ -538,7 +538,7 @@ class propelTable
* @access public * @access public
* @return string * @return string
*/ */
function renderTable ($block = '', $fields = '') public function renderTable ($block = '', $fields = '')
{ {
//Render Title //Render Title
$thereisnotitle = true; $thereisnotitle = true;
@@ -866,7 +866,7 @@ class propelTable
* @param array $data * @param array $data
* @return void * @return void
*/ */
function printForm ($filename, $data = array()) public function printForm ($filename, $data = array())
{ {
global $G_PUBLISH; global $G_PUBLISH;
$G_PUBLISH = new Publisher(); $G_PUBLISH = new Publisher();