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


PHP TElement::__construct方法代码示例

本文整理汇总了PHP中TElement::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP TElement::__construct方法的具体用法?PHP TElement::__construct怎么用?PHP TElement::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TElement的用法示例。


在下文中一共展示了TElement::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * Class Constructor
  * @param $source Image path
  */
 public function __construct($source)
 {
     parent::__construct('img');
     // assign the image path
     $this->src = $source;
     $this->border = 0;
 }
开发者ID:jhonleandres,项目名称:crmbf,代码行数:11,代码来源:TImage.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct('div');
     $this->id = 'AreaChart' . uniqid();
     $this->width = '900';
     $this->height = '500';
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:7,代码来源:AreaChart.class.php

示例3: __construct

 public function __construct($width, $height)
 {
     parent::__construct('iframe');
     $this->width = "{$width}";
     $this->height = "{$height}";
     $this->style = "border:0;";
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:7,代码来源:PPieChartFull.class.php

示例4: __construct

 /**
  * Class Constructor
  */
 public function __construct()
 {
     $this->id = ++self::$scrollCounter . '_' . uniqid();
     $this->margin = 0;
     $this->transparency = FALSE;
     parent::__construct('div');
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:10,代码来源:TScroll.class.php

示例5: __construct

 public function __construct()
 {
     parent::__construct('audio');
     $this->id = 'audio' . uniqid();
     $this->controls = true;
     $this->sources = array();
 }
开发者ID:cbsistem,项目名称:PWD-Lib,代码行数:7,代码来源:PAudio.class.php

示例6: __construct

 /**
  * método construtor
  * instancia objeto TImage
  * @param $source = localização da imagem
  */
 public function __construct($source)
 {
     parent::__construct('img');
     // atribui a localização da imagem
     $this->src = $source;
     $this->border = 0;
 }
开发者ID:ricardohenriq,项目名称:learn-php,代码行数:12,代码来源:TImage.class.php

示例7: uniqid

 function __construct()
 {
     parent::__construct('div');
     $this->id = 'windos' . uniqid();
     $this->width = null;
     $this->height = null;
     $this->title = null;
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:8,代码来源:PWindows.class.php

示例8: __construct

 public function __construct($width = 500, $height = 400)
 {
     parent::__construct('div');
     $this->id = "PPanelGrupe" . uniqid();
     $this->style = "\nborder:1px solid #000;\nwidth :{$width}px;\nheight :{$height}px;\n";
     TPage::include_css('app/lib/PComponetes/util/fieldset.css');
     $this->code = array();
 }
开发者ID:cbsistem,项目名称:PComponetes,代码行数:8,代码来源:PPanelGrupe.class.php

示例9: __construct

 /**
  * Handle paths from a XML file
  * @param $xml_file path for the file
  */
 public function __construct()
 {
     parent::__construct('div');
     $this->{'id'} = 'div_breadcrumbs';
     $this->container = new TElement('ol');
     $this->container->{'class'} = 'breadcrumbs';
     parent::add($this->container);
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:12,代码来源:TBreadCrumb.class.php

示例10: __construct

 public function __construct($width, $heigth)
 {
     parent::__construct('video');
     $this->id = 'video' . uniqid();
     $this->width = $width;
     $this->heigth = $heigth;
     $this->controls = true;
     $this->sources = array();
 }
开发者ID:cbsistem,项目名称:PWD-Lib,代码行数:9,代码来源:PVideo.class.php

示例11: __construct

 /**
  * Class constructor
  * @param $label  The menu label
  * @param $action The menu action
  * @param $image  The menu image
  */
 public function __construct($label, $action, $image = NULL)
 {
     parent::__construct('li');
     $this->label = $label;
     $this->action = $action;
     if (file_exists($image)) {
         $this->image = $image;
     }
 }
开发者ID:enieber,项目名称:adianti,代码行数:15,代码来源:TMenuItem.class.php

示例12: __construct

 /**
  * Class Constructor
  * @param $name Name of the widget
  */
 public function __construct()
 {
     parent::__construct('div');
     self::$counter++;
     $this->useOKButton = TRUE;
     $this->{'id'} = 'jquery_dialog' . self::$counter . '_' . uniqid();
     $this->{'widget'} = 'T' . 'Window';
     $this->{'style'} = "overflow:auto";
 }
开发者ID:enieber,项目名称:adianti,代码行数:13,代码来源:TJQueryDialog.class.php

示例13: __construct

 /**
  * Class Constructor
  * @param $xml SimpleXMLElement parsed from XML Menu
  */
 public function __construct($xml)
 {
     parent::__construct('ul');
     $this->{'class'} = 'dropdown-menu';
     $this->items = array();
     if ($xml instanceof SimpleXMLElement) {
         $this->parse($xml);
     }
 }
开发者ID:enieber,项目名称:adianti,代码行数:13,代码来源:TMenu.class.php

示例14: __construct

 /**
  * Class Constructor
  * @param $source Image path
  */
 public function __construct($type = 'danger', $msg = 'alerta', $titulo = "Alerta")
 {
     TPage::include_js('app/lib/PComponetes/util/js/bootstrap.js');
     TPage::include_css('app/lib/PComponetes/util/css/bootstrap.css');
     parent::__construct('div');
     $this->setType($type);
     $this->titulo = $titulo;
     $this->msg = $msg;
     $this->class = "alert alert-dismissable {$this->type} ";
     $this->role = "alert";
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:15,代码来源:PAlert.php

示例15: __construct

 /**
  * Class Constructor
  * @param $source video path
  * @see format .flv
  */
 public function __construct($source, $youtube = true)
 {
     parent::__construct('embed');
     // assign the image path
     if ($youtube == true) {
         $this->src = "http://www.youtube.com/v/{$source}";
     } else {
         $this->src = $source;
     }
     $this->type = "application/x-shockwave-flash";
 }
开发者ID:jhonleandres,项目名称:pecommerce,代码行数:16,代码来源:PVideo.class.php


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