/**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->user = new CMUser();
     $this->temperatures = new CMTemperatures();
     $this->textfiles = new CMTextfiles();
     $this->Lists();
 }
Пример #2
0
 /**
 * Constructor
 */
 public function __construct($id = null)
 {
     parent::__construct();
     if ($id) {
         $this->LoadById($id);
     } else {
         $this->data = array();
     }
 }
Пример #3
0
 /**
  * Constructor
  */
 public function __construct($key = null)
 {
     parent::__construct();
     if ($key) {
         $this->LoadByKey($key);
     } else {
         $this->text = array();
     }
 }
Пример #4
0
 /**
  * Constructor
  */
 public function __construct($room = null)
 {
     parent::__construct();
     if ($room) {
         $this->LoadByRoom($room);
     } else {
         $this->temps = array();
     }
 }
Пример #5
0
 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);
     }
 }
Пример #6
0
 /**
 * 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';
     }
 }
Пример #7
0
 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();
 }
Пример #8
0
 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();
 }
Пример #9
0
 /**
  * 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();
 }
Пример #10
0
 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);
 }
Пример #11
0
 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();
 }
Пример #13
0
 /**
  * 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);
 }
Пример #14
0
 /**
 * 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;}');
 }
Пример #15
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->temperatures = new CMTemperatures();
     $this->LoadLists();
 }
Пример #16
0
 /**
 * Constructor
 */
 public function __construct()
 {
     parent::__construct();
     $this->guestbookModel = new CMGuestbook();
 }