public function __construct($model) { parent::__construct(); $this->model = $model; $this->teams = $model->getTeams(); $this->results = $model->getResults(); }
public function __construct($clanek, $obrazky = null, $ostatni_prilohy = null) { parent::__construct(); $this->clanek = $clanek; $this->obrazky = $obrazky; $this->ostatni_prilohy = $ostatni_prilohy; }
public function __construct($osoby, $action) { parent::__construct(); $this->osoby = $osoby; $this->action = $action; $this->action = ''; }
/** * 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(); }
/** * 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); }
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; } } }
/** * 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); }
public function __construct($osoba, $admin = null) { parent::__construct(); $this->osoba = $osoba; $this->admin = $admin; }
public function __construct($obrazky) { parent::__construct(); $this->obrazky = $obrazky; }
public function __construct() { parent::__construct(); }
public function __construct($clanek) { parent::__construct(); $this->clanek = $clanek; }
public function __construct($prilohy) { parent::__construct(); $this->prilohy = $prilohy; }
function __construct(IComponentContainer $parent = NULL, $name = NULL, &$dataRow = NULL) { $this->setDataRow($dataRow); parent::__construct($parent, $name); }
public function __construct($seznam_clanku) { parent::__construct(); $this->seznam_clanku = $seznam_clanku; }
public function __construct($model) { parent::__construct(); $this->model = $model; }
public function __construct($model) { parent::__construct(); $this->model = $model; $this->events = $model->getEvents()->order('finished'); }
public function __construct($osoby) { parent::__construct(); $this->osoby = $osoby; }