本文整理汇总了PHP中DataForm::DataForm方法的典型用法代码示例。如果您正苦于以下问题:PHP DataForm::DataForm方法的具体用法?PHP DataForm::DataForm怎么用?PHP DataForm::DataForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataForm
的用法示例。
在下文中一共展示了DataForm::DataForm方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DataFilter
/**
* 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();
}
示例2: DataDetails
/**
* 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);
}
示例3: DataEdit
/**
* 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);
}