本文整理匯總了PHP中TEntry::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP TEntry::__construct方法的具體用法?PHP TEntry::__construct怎麽用?PHP TEntry::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TEntry
的用法示例。
在下文中一共展示了TEntry::__construct方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
/**
* Class Constructor
* @param $name name of the field
* @param $model name of the Model
* @param $form name of the Form
* @param $database name of the Database
* @param $filtros name of the field of filters (Array)
* @param $fields name of the fields of columns
*/
public function __construct($name, $model, $form, $database, $filtros, $fields)
{
parent::__construct($name);
$this->useOutEvent = TRUE;
$this->setProperty('class', 'tfield tseekentry', TRUE);
// classe CSS
$image = new TImage('lib/adianti/images/ico_find.png');
$this->button = new TElement('button');
$this->button->{'class'} = 'btn btn-default tseekbutton';
$this->button->{'type'} = 'button';
$this->button->{'id'} = 'Pbutton_' . $name;
$this->button->{'onmouseover'} = 'style.cursor = \'pointer\'';
$this->button->{'name'} = '_' . $this->name . '_link';
$this->button->{'onmouseout'} = 'style.cursor = \'default\'';
$this->button->add($image);
$url = 'index.php?class=PDBStandartSeek&method=onReload';
$action = "__adianti_load_page( '{$url}');";
$action .= "return false;";
$this->button->onclick = $action;
//configuração
TSession::setValue('Model', $model);
// model
TSession::setValue('form', $form);
//form de retorno
TSession::setValue('database', $database);
TSession::setValue('filtros', $filtros);
TSession::setValue('fields', $fields);
}
示例2: __construct
/**
* Class Constructor
* @param $name Name of the widget
*/
public function __construct($name)
{
parent::__construct($name);
self::$counter++;
//$this->id = 'tdate'.self::$counter;
$this->id = 'tdate_' . uniqid();
$this->mask = 'yyyy-mm-dd';
$newmask = $this->mask;
$newmask = str_replace('dd', '99', $newmask);
$newmask = str_replace('mm', '99', $newmask);
$newmask = str_replace('yyyy', '9999', $newmask);
parent::setMask($newmask);
}
示例3: __construct
/**
* Class Constructor
* @param $name Name of the widget
*/
public function __construct($name)
{
parent::__construct($name);
self::$counter++;
$this->id = 'tdate_' . uniqid();
$this->mask = 'yyyy-mm-dd';
TPage::include_css('lib/adianti/include/tdate/tdate.css');
$newmask = $this->mask;
$newmask = str_replace('dd', '99', $newmask);
$newmask = str_replace('mm', '99', $newmask);
$newmask = str_replace('yyyy', '9999', $newmask);
parent::setMask($newmask);
}
示例4: __construct
/**
* Class Constructor
* @param $name name of the field
*/
public function __construct($name)
{
parent::__construct($name);
$this->useOutEvent = TRUE;
$this->setProperty('class', 'tfield tseekentry', TRUE);
// classe CSS
TPage::include_css('lib/adianti/include/tseekbutton/tseekbutton.css');
$image = new TImage('lib/adianti/images/ico_find.png');
$this->button = new TElement('button');
$this->button->{'class'} = 'btn tseekbutton';
$this->button->{'type'} = 'button';
$this->button->{'onmouseover'} = 'style.cursor = \'pointer\'';
$this->button->{'name'} = '_' . $this->name . '_link';
$this->button->{'onmouseout'} = 'style.cursor = \'default\'';
$this->button->add($image);
}
示例5: array
function __construct($required = false, $duplicated = false, $table = null, $field = null)
{
parent::__construct($required, $duplicated, $table, $field);
$this->entry->set_max_length(11);
$this->no_space = 1;
$this->entry->connect('changed', array($this, '__ientry_changed'));
}
示例6: __construct
/**
* Class Constructor
* @param $name name of the field
*/
public function __construct($name)
{
parent::__construct($name);
$this->useOutEvent = TRUE;
}