Example #1
0
 public function __construct($model)
 {
     parent::__construct();
     $this->model = $model;
     $this->teams = $model->getTeams();
     $this->results = $model->getResults();
 }
Example #2
0
 public function __construct($clanek, $obrazky = null, $ostatni_prilohy = null)
 {
     parent::__construct();
     $this->clanek = $clanek;
     $this->obrazky = $obrazky;
     $this->ostatni_prilohy = $ostatni_prilohy;
 }
Example #3
0
 public function __construct($osoby, $action)
 {
     parent::__construct();
     $this->osoby = $osoby;
     $this->action = $action;
     $this->action = '';
 }
Example #4
0
 /**
  * Initialization
  *
  * @access public
  * @param Nette\DI\Container $context global context
  * @param IForumControlModel $model instance of model
  * @param array $params forum params
  * @return void
  * @uses ForumControlModel::getThreads()
  * @since 1.0.0
  */
 public function __construct(SystemContainer $context, IForumControlModel $model, array $params)
 {
     parent::__construct();
     $this->context = $context;
     $this->model = $model;
     $this->forumTopicId = $params['topicId'];
     $this->forumAllTopics = (bool) $params['allTopics'];
     $this->forumSelectedTopicsIds = $params['selectedTopicsIds']['value'];
     $this->forumSelectedTopicsContainer = $params['selectedTopicsIds']['name'];
     $this->forumThreads = $this->model->getThreads();
 }
 function __construct()
 {
     parent::__construct();
     if ($this->xmlrpc) {
         $this->captcha = new CaptchaXMLRPC("captcha.seznam.cz", 3410);
         //$this->captcha->setProxy("proxy", 3128);
     } else {
         $this->captcha = new CaptchaHTTP("captcha.seznam.cz", 80);
     }
     $this->create();
 }
Example #6
0
 /**
  * Constructs the DibiGrid
  * @param DibiDataSource
  * @param array of default parameters 
  */
 public function __construct($dibiSource, $params = array())
 {
     parent::__construct();
     $this->source = $dibiSource;
     $this->cols = array();
     // common default parameters
     $this->params = $params + array('id_table' => 'id', 'current' => 1, 'translator' => null, 'limit' => 25, 'order' => 'id', 'offset' => 1, 'sorting' => 'asc', 'filter' => null, 'onSubmit' => null, 'rowRenderer' => function ($row) {
         return NHtml::el("tr");
     }, 'rowClass' => array());
     // default parameters for each row
     $this->defaultRowParams = array('filter' => true, 'truncate' => 40, 'order' => true, 'width' => 100, 'editable' => false, 'dateFormat' => "%d/%m/%y", 'timeFormat' => "%H:%M", 'datetimeFormat' => "%d/%m/%y %H:%M", 'renderer' => null, 'class' => array(), 'translate' => false, 'headerElement' => NHtml::el("th"), 'filterHandler' => function ($val, $col) {
         return "{$col} LIKE '{$val}%'";
     }, 'type' => self::TEXT);
 }
Example #7
0
 public function __construct($typy, $seznam_priloh, $seznam_priloh_z_db, $typ_zobrazeni = 'admin')
 {
     parent::__construct();
     $this->typy = $typy;
     $this->typ_zobrazeni = $typ_zobrazeni;
     $i = 0;
     foreach ($typy as $key => $value) {
         self::$typy_sort[$key] = $i;
         $i++;
     }
     foreach ($seznam_priloh as $adresa => $priloha) {
         if (isset($seznam_priloh_z_db[$priloha['nazev']])) {
             $this->prilohy[$seznam_priloh_z_db[$priloha['nazev']]->typ][$adresa] = $priloha;
         } else {
             $this->prilohy['ostatni'][$adresa] = $priloha;
         }
     }
 }
Example #8
0
 /**
  * Constructs the Tabella
  * @param DibiDataSource
  * @param array of default parameters
  */
 public function __construct($params)
 {
     parent::__construct();
     $this->context = $params['context'];
     $this->source = $params['source'];
     $this->cols = array();
     if (!isset($params['id_table'])) {
         throw new Exception('id_table is required.');
     }
     unset($params['context']);
     unset($params['source']);
     // common default parameters
     $this->params = $params + array('id_table' => 'id', 'offset' => 1, 'limit' => 25, 'order' => $params['id_table'], 'sorting' => 'asc', 'filter' => null, 'onSubmit' => null, 'translator' => false, 'rowRenderer' => function ($row) {
         return \NHtml::el('tr');
     }, 'rowClass' => array(), 'userParams' => array(), 'addedControls' => array());
     //		dump($this->params);
     // default parameters for each row
     $this->defaultRowParams = array('filter' => true, 'truncate' => 40, 'order' => true, 'width' => 100, 'editable' => false, 'dateFormat' => '%d/%m/%y', 'timeFormat' => '%H:%M', 'datetimeFormat' => '%d/%m/%y %H:%M', 'renderer' => null, 'class' => array(), 'translate' => false, 'headerElement' => \NHtml::el('th'), 'type' => self::TEXT);
 }
Example #9
0
 public function __construct($osoba, $admin = null)
 {
     parent::__construct();
     $this->osoba = $osoba;
     $this->admin = $admin;
 }
Example #10
0
 public function __construct($obrazky)
 {
     parent::__construct();
     $this->obrazky = $obrazky;
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
 }
Example #12
0
 public function __construct($clanek)
 {
     parent::__construct();
     $this->clanek = $clanek;
 }
 public function __construct($prilohy)
 {
     parent::__construct();
     $this->prilohy = $prilohy;
 }
Example #14
0
 function __construct(IComponentContainer $parent = NULL, $name = NULL, &$dataRow = NULL)
 {
     $this->setDataRow($dataRow);
     parent::__construct($parent, $name);
 }
Example #15
0
 public function __construct($seznam_clanku)
 {
     parent::__construct();
     $this->seznam_clanku = $seznam_clanku;
 }
Example #16
0
 public function __construct($model)
 {
     parent::__construct();
     $this->model = $model;
 }
Example #17
0
 public function __construct($model)
 {
     parent::__construct();
     $this->model = $model;
     $this->events = $model->getEvents()->order('finished');
 }
Example #18
0
 public function __construct($osoby)
 {
     parent::__construct();
     $this->osoby = $osoby;
 }