当前位置: 首页>>代码示例>>PHP>>正文


PHP TEntry::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:cbsistem,项目名称:PWD-Lib,代码行数:37,代码来源:PSeekButton.class.php

示例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);
 }
开发者ID:enieber,项目名称:adianti,代码行数:17,代码来源:TDate.class.php

示例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);
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:17,代码来源:TDate.class.php

示例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);
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:20,代码来源:TSeekButton.class.php

示例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'));
 }
开发者ID:eneiasramos,项目名称:xmoney,代码行数:7,代码来源:entrys.php

示例6: __construct

 /**
  * Class Constructor
  * @param  $name name of the field
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->useOutEvent = TRUE;
 }
开发者ID:enieber,项目名称:adianti,代码行数:9,代码来源:TSeekButton.class.php


注:本文中的TEntry::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。