Example #1
0
 public function __construct($rows = 0, $cols = 0, $y = 0, $x = 0)
 {
     parent::__construct($rows, $cols, $y, $x);
     $this->clear();
     $this->lines = [];
     $this->refresh();
 }
Example #2
0
 public function __construct($value = null)
 {
     parent::__construct($value);
     if ($value) {
         $this->setProperty('layout', $value);
     }
 }
Example #3
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->wrapper = new MarkupContainer('wrapper');
     $this->wrapper->setOutputMarkupId(true);
     $this->add($this->wrapper);
     $this->dialog = new DialogBehavior();
     $this->dialog->setModal(true);
     $this->dialog->setAutoOpen(false);
     $this->setOutputMarkupId(true);
     $this->setContent(new EmptyPanel($this->getContentId()));
     $this->add($this->dialog);
 }
Example #4
0
 public function __construct($id, DataProvider $provider, $columns, $rowsPerPage = 10)
 {
     parent::__construct($id);
     $this->provider = $provider;
     $this->columns = $columns;
     $this->{$rowsPerPage} = $rowsPerPage;
     $this->gridView = new DataGridView('row', 'col', 'value', $provider, $columns, $rowsPerPage);
     $this->add($this->gridView);
     $this->head = new RepeatingView('head');
     $this->foot = new RepeatingView('foot');
     $this->add($this->head);
     $this->add($this->foot);
 }
Example #5
0
 public function __construct($id, Pageable $pageable)
 {
     parent::__construct($id);
     $this->pageable = $pageable;
     $pageLinks = new RepeatingView('page');
     $this->add($pageLinks);
     for ($i = 0; $i < $this->pageable->getPageCount(); $i++) {
         $linkBlock = new MarkupContainer($pageLinks->getNextChildId());
         $link = new NavigationLink('pageLink', $pageable, $i + 1);
         $linkBlock->add($link);
         $link->add(new Label('pageNumber', new BasicModel($i + 1)));
         $pageLinks->add($linkBlock);
     }
 }
Example #6
0
 public function __construct($server_id = null)
 {
     global $main;
     //@todo fix me this is an ugly fix to avoid the useless calls in the ajax::editserverhash and ajax::serverhash
     if ($server_id != '-1') {
         parent::__construct($server_id);
         $this->status = false;
         if (!empty($server_id)) {
             if ($this->_testConnection()) {
                 $this->status = true;
                 $main->addlog('ispconfig::construct Testing connection ok');
             } else {
                 $main->addlog('ispconfig::construct Testing connection failed');
             }
         } else {
             $main->addlog('ispconfig::server id not provided');
         }
     }
 }
Example #7
0
 public function __construct($id, TabCollection $collection)
 {
     parent::__construct($id);
     $this->collection = $collection;
     $this->setup();
 }
 public function __construct(DataTable $dataTable)
 {
     parent::__construct($dataTable->getNextToolbarId());
     $this->dataTable = $dataTable;
 }
Example #9
0
 function __construct($id, $title)
 {
     parent::__construct($id, $title);
     $this->data = array_merge(array('name' => '', 'phone' => '', 'phone_uri' => '', 'email' => '', 'email_uri' => '', 'hours' => '', 'links' => '', 'raw_content' => ''), $this->data);
 }
Example #10
0
 /**
     Constructor.
     @param string $title name of the panel.
     @return object.
     **/
 public function __construct($title, $id = -1)
 {
     parent::__construct($title, 'text', $id);
 }
Example #11
0
 /**
     Constructor.
     @param string  $title      name of the panel.
     @param boolean $legendShow hide the legend or not
     @return object.
     **/
 function __construct($title, $legendShow = LEGEND_SHOW)
 {
     parent::__construct($title, 'graph');
     $this->data['tooltip'] = array('show' => false, 'values' => false, 'min' => false, 'max' => false, 'current' => false, 'total' => false, 'avg' => false, 'shared' => true);
     $this->data['legend'] = array("show" => $legendShow, "values" => false, "min" => false, "max" => false, "current" => false, "total" => false, "avg" => false, "alignAsTable" => false, "rightSide" => false, "hideEmpty" => true);
     $this->data['fill'] = 0;
     $this->data['linewidth'] = 2;
     $this->data['targets'] = array();
     $this->data['seriesOverrides'] = array();
 }