/** * Constructor */ public function __construct() { parent::__construct(); $this->user = new CMUser(); $this->temperatures = new CMTemperatures(); $this->textfiles = new CMTextfiles(); $this->Lists(); }
/** * Constructor */ public function __construct($id = null) { parent::__construct(); if ($id) { $this->LoadById($id); } else { $this->data = array(); } }
/** * Constructor */ public function __construct($key = null) { parent::__construct(); if ($key) { $this->LoadByKey($key); } else { $this->text = array(); } }
/** * Constructor */ public function __construct($room = null) { parent::__construct(); if ($room) { $this->LoadByRoom($room); } else { $this->temps = array(); } }
public function __construct($tagname, $paired = false, $body = null) { parent::__construct(); $this->attributes = []; $this->tagname = $tagname; $this->paired = $paired; if (!is_null($body)) { $this->addItem($body); } }
/** * Constructor */ public function __construct($Origo = null) { parent::__construct($Origo); $profile = $this->session->GetAuthenticatedUser(); $this->profile = is_null($profile) ? array() : $profile; $this['isAuthenticated'] = is_null($profile) ? false : true; if (!$this['isAuthenticated']) { $this['id'] = 1; $this['acronym'] = 'anonomous'; } }
public function __construct($name, $value) { parent::__construct(); $lbl = new CColorCell('lbl_' . $name, $value, "show_color_picker('" . $name . "')"); $txt = new CTextBox($name, $value, 7); $txt->setAttribute('maxlength', 6); $txt->setAttribute('id', $name); $txt->addAction('onchange', "set_color_by_name('" . $name . "',this.value)"); $txt->setAttribute('style', 'margin-top: 0px; margin-bottom: 0px'); $this->addItem(array($txt, $lbl)); insert_show_color_picker_javascript(); }
public function __construct($name, $value) { parent::__construct(); $txt = new CTextBox($name, $value); $txt->addStyle('width: 6em;'); $txt->attr('maxlength', 6); $txt->attr('id', zbx_formatDomId($name)); $txt->addAction('onchange', 'set_color_by_name("' . $name . '", this.value)'); $txt->addStyle('style', 'margin-top: 0px; margin-bottom: 0px;'); $lbl = new CColorCell('lbl_' . $name, $value, 'javascript: show_color_picker("' . $name . '")'); $this->addItem(array($txt, $lbl)); insert_show_color_picker_javascript(); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->textfiles = new CMTextfiles(); $this->temperatures = new CMTemperatures(); $this->translate = new CMTranslate(); $this->list = $this->temperatures->ListAll(); $this->various = $this->temperatures->ListVarious(); $this->isTemps = $this->textfiles->getIsTemps(); $this->fromDate = $this->getFromDate(); $this->toDate = $this->getToDate(); $this->todaysDate = $this->textfiles->getTodaysDate(); $this->tomorrowsDate = $this->textfiles->getTomorrowsDate(); $this->isAway = $this->getIsAway(); }
public function __construct($tagname = NULL, $paired = 'no', $body = NULL, $class = null) { parent::__construct(); $this->options = array(); if (!is_string($tagname)) { return $this->error('Incorrect tagname for CTag [' . $tagname . ']'); } $this->tagname = $tagname; $this->paired = $paired; $this->tag_start = $this->tag_end = $this->tag_body_start = $this->tag_body_end = ''; if (is_null($body)) { $this->tag_end = $this->tag_body_start = "\n"; } else { CTag::addItem($body); } $this->setClass($class); }
public function __construct($tagname = null, $paired = 'no', $body = null, $class = null) { parent::__construct(); $this->attributes = array(); $this->dataAttributes = array(); if (!is_string($tagname)) { return $this->error('Incorrect tagname for CTag "' . $tagname . '".'); } $this->tagname = $tagname; $this->paired = $paired; $this->tag_start = $this->tag_end = $this->tag_body_start = $this->tag_body_end = ''; if (is_null($body)) { $this->tag_end = $this->tag_body_start = ''; } else { $this->addItem($body); } $this->addClass($class); }
/** * Constructor */ public function __construct() { parent::__construct(); }
/** * Constructor * * @param array $options to change the default options used for this class. */ public function __construct($options = array()) { parent::__construct(); $defaults = array('index_template' => 'index', 'sidebar_template' => 'sidebar', 'suffix_template' => '.tpl.php', 'breadcrumb' => true); $this->options = array_merge($defaults, $options); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->views->AddStyle('body:hover{background:#fff url(' . $this->request->base_url . 'themes/grid/grid_12_60_20.png) repeat-y center top;}'); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->temperatures = new CMTemperatures(); $this->LoadLists(); }
/** * Constructor */ public function __construct() { parent::__construct(); $this->guestbookModel = new CMGuestbook(); }