public function __construct($table, $data) { $this->table = $table; $this->friendlytable = ucfirst(str_replace(TABLEPREFIX, '', $table)); $this->cols = dbfn::_getfields($table); $this->params = array(); foreach ($this->cols as $col) { $oTemp = new colparams($this->table, $col); $this->params[$col] = $oTemp->_getvalues(); } $this->datain = $data; $this->process(); //fb($this,FIREPHP::TRACE); }
public function __construct($table, $cid = 'new') { global $view; $this->option = $view; $this->table = $table; $this->cid = $cid; $this->cols = dbfn::_getfields("aimnotes"); $this->popup = req::_('popup'); $this->editing = req::_('editing'); $this->params = array(); foreach ($this->cols as $col) { $oTemp = new colparams($this->table, $col); $this->params[$col] = $oTemp->_getvalues(); } }
public function __construct($table, $tables) { $this->table = $table; $this->tables = $tables; $this->ar_cols = dbfn::_getfields($table); $oPlist = new paramdefaults(); $aPlist = array(); foreach ($oPlist as $key => $value) { $aPlist[] = $value['label']; } $this->ar_params = $aPlist; $this->params = array(); foreach ($this->ar_cols as $col) { $this->params[$col] = new colparams($this->table, $col); } }