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


PHP CDiv::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Construct widget.
  *
  * @param string 			$id
  * @param string|array|CTag $body
  */
 public function __construct($id, $body = null)
 {
     $this->id = $id;
     $this->body = $body ? array($body) : array();
     parent::__construct(null, 'ui-widget ui-widget-content ui-helper-clearfix ui-corner-all widget ui-tabs');
     $this->setAttribute('id', $this->id . '_widget');
 }
开发者ID:TonywalkerCN,项目名称:Zabbix,代码行数:13,代码来源:CUiWidget.php

示例2: __construct

 public function __construct($name = 'radio', $value = 'yes')
 {
     $this->count = 0;
     $this->name = $name;
     $this->value = $value;
     $this->orientation = self::ORIENTATION_HORIZONTAL;
     parent::__construct(null, null, $name);
 }
开发者ID:omidmt,项目名称:zabbix-greenplum,代码行数:8,代码来源:CRadioButtonList.php

示例3: __construct

 /**
  * Construct widget.
  *
  * @param string 			$id
  * @param string|array|CTag $body
  */
 public function __construct($id, $body = null)
 {
     $this->id = $id;
     $this->body = $body ? [$body] : [];
     parent::__construct();
     $this->addClass('dashbrd-widget');
     $this->setId($this->id . '_widget');
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:14,代码来源:CUiWidget.php

示例4: __construct

 public function __construct($title, $class, $action = '')
 {
     parent::__construct(SPACE, $class . ' menu_icon');
     $this->setAttribute('title', $title);
     if (!empty($action)) {
         $this->setAttribute('onclick', 'javascript: ' . $action);
     }
 }
开发者ID:songyuanjie,项目名称:zabbix-stats,代码行数:8,代码来源:class.cicon.php

示例5: __construct

 public function __construct($name, $value, $insert_color_picker = true)
 {
     parent::__construct([(new CColorCell('lbl_' . $name, $value))->setTitle('#' . $value)->onClick('javascript: show_color_picker("' . zbx_formatDomId($name) . '")'), (new CTextBox($name, $value))->setWidth(ZBX_TEXTAREA_COLOR_WIDTH)->setAttribute('maxlength', 6)->onChange('set_color_by_name("' . zbx_formatDomId($name) . '", this.value)')]);
     $this->addClass(ZBX_STYLE_INPUT_COLOR_PICKER);
     if ($insert_color_picker) {
         insert_show_color_picker_javascript();
     }
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:8,代码来源:CColor.php

示例6: __construct

 public function __construct($id, $class = null, $editable = true)
 {
     $this->editable = $editable;
     $this->formList = new CList(null, 'formlist');
     parent::__construct();
     $this->attr('id', zbx_formatDomId($id));
     $this->attr('class', $class);
 }
开发者ID:quanta-computing,项目名称:debian-packages,代码行数:8,代码来源:class.cformlist.php

示例7: __construct

 public function __construct($name, $value, $action = null)
 {
     parent::__construct(SPACE . SPACE . SPACE, 'pointer');
     $this->setName($name);
     $this->attr('id', zbx_formatDomId($name));
     $this->attr('title', '#' . $value);
     $this->attr('style', 'display: inline; width: 10px; height: 10px; text-decoration: none; border: 1px solid black; background-color: #' . $value);
     $this->attr('onclick', $action);
 }
开发者ID:omidmt,项目名称:zabbix-greenplum,代码行数:9,代码来源:CColorCell.php

示例8: __construct

 public function __construct($name = null, $color)
 {
     parent::__construct();
     if ($name !== null) {
         $this->setName($name);
         $this->setId(zbx_formatDomId($name));
     }
     $this->setAttribute('style', 'background: #' . $color);
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:9,代码来源:CColorCell.php

示例9: __construct

 public function __construct($name, $value, $action = null)
 {
     parent::__construct(SPACE . SPACE . SPACE, null);
     $this->setName($name);
     $this->setAttribute('id', $name);
     $this->setAttribute('title', '#' . $value);
     $this->setAttribute('class', 'pointer');
     $this->setAttribute('style', 'display: inline; width: 10px; height: 10px; text-decoration: none; outline: 1px solid black; background-color: #' . $value);
     $this->setAction($action);
 }
开发者ID:phedders,项目名称:zabbix,代码行数:10,代码来源:class.ccolorcell.php

示例10: __construct

 public function __construct($header, $messages = [], $buttons = [])
 {
     parent::__construct($header);
     $this->addClass(ZBX_STYLE_MSG_BAD);
     $this->addClass('msg-global');
     if ($messages) {
         parent::addItem((new CDiv((new CList($messages))->addClass(ZBX_STYLE_MSG_DETAILS_BORDER)))->addClass(ZBX_STYLE_MSG_DETAILS));
     }
     parent::addItem((new CDiv($buttons))->addClass('msg-buttons'));
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:10,代码来源:CWarning.php

示例11: __construct

 public function __construct($id, $body = null, $state = null)
 {
     $this->domid = $id;
     $this->state = $state;
     // 0 - closed, 1 - opened
     $this->css_class = 'header';
     $this->_header = null;
     $this->_body = array($body);
     $this->_footer = null;
     parent::__construct(null, 'ui-widget ui-widget-content ui-helper-clearfix ui-corner-all widget');
     $this->setAttribute('id', $id . '_widget');
 }
开发者ID:SandipSingh14,项目名称:Zabbix_,代码行数:12,代码来源:class.cuiwidget.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->addClass(ZBX_STYLE_CLOCK);
     $this->width = 150;
     $this->height = 150;
     $this->time_zone_string = null;
     $this->footer = null;
     $this->time = null;
     $this->time_zone_offset = null;
     $this->error = null;
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:12,代码来源:CClock.php

示例13: __construct

 public function __construct($data = array())
 {
     if (isset($data['id'])) {
         $this->id = $data['id'];
     }
     if (isset($data['remember'])) {
         $this->setRemember($data['remember']);
     }
     if (isset($data['selected'])) {
         $this->setSelected($data['selected']);
     }
     parent::__construct();
     $this->attr('id', zbx_formatDomId($this->id));
     $this->attr('class', 'min-width hidden');
 }
开发者ID:quanta-computing,项目名称:debian-packages,代码行数:15,代码来源:class.ctabview.php

示例14: __construct

 public function __construct($data = [])
 {
     if (isset($data['id'])) {
         $this->id = $data['id'];
     }
     if (isset($data['selected'])) {
         $this->setSelected($data['selected']);
     }
     if (isset($data['disabled'])) {
         $this->setDisabled($data['disabled']);
     }
     parent::__construct();
     $this->setId(zbx_formatDomId($this->id));
     $this->addClass(ZBX_STYLE_TABLE_FORMS_CONTAINER);
 }
开发者ID:jbfavre,项目名称:debian-zabbix,代码行数:15,代码来源:CTabView.php

示例15: __construct

 public function __construct($data = array())
 {
     if (isset($data['id'])) {
         $this->id = $data['id'];
     }
     if (isset($data['selected'])) {
         $this->setSelected($data['selected']);
     }
     if (isset($data['disabled'])) {
         $this->setDisabled($data['disabled']);
     }
     parent::__construct();
     $this->attr('id', zbx_formatDomId($this->id));
     $this->attr('class', 'tabs');
 }
开发者ID:TonywalkerCN,项目名称:Zabbix,代码行数:15,代码来源:CTabView.php


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