本文整理汇总了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;
}