/** * PHP4 constructor. * * @access public * @param string $title output title * @param string $table table-name to be filtered (you can leave it empty.. and preset BEFORE a complex join active-record query) * @return void */ function DataFilter($title = null, $table = null) { parent::DataForm(); //prepare active record query ("select" and "from") if (isset($table)) { $this->db->select('*'); $this->db->from($table); } //assign an output title $this->title($title); $this->session =& $this->rapyd->session; //sniff current action $this->_sniff_action(); }
/** * PHP4 constructor. * * @access public * @param string $title widget title * @param mixed $table db-tablename to be edited / or a dataobject instance * @return void */ function DataDetails($title, $table) { if (is_object($table) && is_a($table, "DataObject")) { $dataobject =& $table; } else { $dataobject = new DataObject($table); } parent::DataForm(null, $dataobject); $this->session =& $this->rapyd->session; $this->_pkey = count($this->_dataobject->pk); if ($this->rapyd->uri->get("osp", 1) == "") { $this->rapyd->uri->un_set("osp"); } $this->_sniff_status(); $this->title($title); }
/** * PHP4 constructor. * * @access public * @param string $title widget title * @param mixed $table db-tablename to be edited / or a dataobject instance * @return void */ function DataEdit($title, $table) { if (is_object($table) && is_a($table, 'DataObject')) { $dataobject =& $table; } else { $dataobject = new DataObject($table); } parent::DataForm(null, $dataobject); $this->session =& $this->rapyd->session; $this->_pkey = count($this->_dataobject->pk); if ($this->rapyd->uri->get('osp', 1) == '') { $this->rapyd->uri->un_set('osp'); } $this->_sniff_status(); $this->title($title); }