コード例 #1
0
ファイル: class_table.php プロジェクト: Gimcrack/aimsys
 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);
 }
コード例 #2
0
ファイル: class_notes.php プロジェクト: Gimcrack/aimsys
 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();
     }
 }
コード例 #3
0
ファイル: class_colparams.php プロジェクト: Gimcrack/aimsys
 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);
     }
 }