本文整理汇总了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;
}
示例2: __construct
public function __construct()
{
parent::__construct('div');
$this->id = 'AreaChart' . uniqid();
$this->width = '900';
$this->height = '500';
}
示例3: __construct
public function __construct($width, $height)
{
parent::__construct('iframe');
$this->width = "{$width}";
$this->height = "{$height}";
$this->style = "border:0;";
}
示例4: __construct
/**
* Class Constructor
*/
public function __construct()
{
$this->id = ++self::$scrollCounter . '_' . uniqid();
$this->margin = 0;
$this->transparency = FALSE;
parent::__construct('div');
}
示例5: __construct
public function __construct()
{
parent::__construct('audio');
$this->id = 'audio' . uniqid();
$this->controls = true;
$this->sources = array();
}
示例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;
}
示例7: uniqid
function __construct()
{
parent::__construct('div');
$this->id = 'windos' . uniqid();
$this->width = null;
$this->height = null;
$this->title = null;
}
示例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();
}
示例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);
}
示例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();
}
示例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;
}
}
示例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";
}
示例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);
}
}
示例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";
}
示例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";
}