public function __construct($params, $interface = "InterfaceProducao.html") { $this->producao = new ModelProducao(); $this->producaoDAO = new ProducaoDAO(); parent::__construct($params, $interface); parent::paginado($this->producao, 15); }
public function __construct($params, $interface = "InterfaceDashboard_Estatistica.html") { $this->producao = new ModelProducao(); $this->dashboard_estatisticaDAO = new Dashboard_EstatisticaDAO(); $this->remuneracaoVariavel = new AdminRemuneracaoVariavel($this->params); parent::__construct($params, $interface); }
public function __construct(array $form) { if (isset($form['label'])) { $form['label'] = t('Введите символы с картинки'); } return parent::__construct($form); }
public function __construct($util, $get = null) { parent::__construct($util); $this->model(); $this->setViewMenu(); if (isset($get["vers"])) { $vers = $get["vers"]; } else { $vers = 1; } if (isset($get["depuis"])) { $depuis = $get["depuis"]; } else { $depuis = 1; } $model = new Model(); if (isset($get["enregistrer"])) { //on a cliqué un bouton enregistrer if (isset($get["li"])) { //il y a des situs (inutile ici...) $model->validSitu($get["chk"], $this->util->getId(), $get["li"]); } } $data["lessitus"] = $model->getSitus($util->getId(), $util->getNumGroupe(), $vers); $data["auth"] = $this->util->estAuthent(); $data["vers"] = $vers; $data["type"] = "V"; //validations $this->view->init('dessitus.php', $data); $this->setViewBas(); $model->close(); }
public function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); $this->db = dibi::getConnection(); self::$count++; // $this->setWebloaderPaths(); }
/** * Creates root NavigationNode * @param IComponentContainer $parent * @param string $name */ public function __construct(IComponentContainer $parent = NULL, $name = NULL) { $this->root = new NavigationNode($this, 'root'); $this->root->label = 'Home'; $this->currentItem = $this->root; parent::__construct($parent, $name); }
public function __construct($params, $interface = "InterfaceProducao_Cadastro.html") { $this->producao = new ModelProducao(); $this->producaoDAO = new ProducaoDAO(); $this->sgv = 0; parent::__construct($params, $interface); }
/** * @param \Cocona\Core\Html\Presenter $name * @param null $value * @param array $attributes */ public function __construct($name, $value = null, array $attributes = []) { parent::__construct(array_merge($attributes, compact('name'))); $this->presenters = $this->presenters->merge(['default' => view('cocona.core::html.presenters.form.controls.textarea.default'), 'wysiwyg' => view('cocona.core::html.presenters.form.controls.wysiwyg.default')]); $this->present('default'); $this->children->put('body', $value); }
public function __construct(array $form) { parent::__construct($form, array('label')); if (empty($this->label)) { $this->label = '?'; } }
function index() { //载入模型 parent::__construct(); $this->question = $this->Model('mquestion'); $this->scores = $this->Model('mscores'); }
/** * Proceed constructor: initialize attributes with some default values * * @param string $id */ public function __construct(string $id) { parent::__construct($id); $this->setValue($id); $this->setDisplay(['control']); $this->setAttribute('type', 'submit'); }
public function __construct($name, array $attributes = array()) { parent::__construct('input'); $this->setAttribute('type', 'text'); $this->setName($name); $this->setAttributes($attributes); }
public function __construct(array $form) { if (empty($form['description'])) { $form['description'] = t('Формат: «ГГГГ-ММ-ДД ЧЧ:ММ:СС», время можно опустить.'); } parent::__construct($form, array('value')); }
public function __construct($params, $interface = "InterfaceImagem.html") { $this->usuario = new ModelUsuario_Administrador(); $this->pasta = "upload_files/"; $this->pasta_thumb = "upload_files/thumb/"; parent::__construct($params, $interface); }
public function __construct($util, $get = null) { parent::__construct($util); $this->model(); $model = new Model(); $data["auth"] = $this->util->estAuthent(); if (!isset($get["num"])) { $data["liste"] = $model->getElevesGroupe($util->getNumGroupe()); $data["droit"] = $this->util->estProf(); $model->close(); $this->setViewMenu(); $this->view->init('passprof.php', $data); $this->setViewBas(); } else { $l = $get["l"]; if ($get["l"] == "p") { $data["tableau"] = $model->getTableauSyntheseNew($get["num"]); $data["synth"] = $model->getSynth($get["num"]); $model->close(); $this->view->init('synthese.php', $data); } else { $data["bilan"] = $model->getBilan($get["num"]); $model->close(); $this->setViewMenu(); $this->view->init('bilan.php', $data); $this->setViewBas(); } } }
public function __construct($util, $get = null) { parent::__construct($util); $this->model(); $model = new Model(); if (isset($get["mode"])) { $mode = $get["mode"]; $numsitu = $get["numsitu"]; switch ($mode) { case 1: $model->supprSitu($numsitu); break; case 2: $model->recupSitu($numsitu); break; case 3: $model->destrucSitu($numsitu); break; } } $data["lessitusel"] = $model->getSitusEl($util->getId()); $model->close(); $this->setViewMenu(); $data["auth"] = $this->util->estAuthent(); $this->view->init('dessitusel.php', $data); $this->setViewBas(); }
public function __construct(array $form) { if (!empty($form['values']) and 0 === strpos($form['values'], ':')) { $form['dictionary'] = substr($form['values'], 1); } parent::__construct($form, array('value')); }
public function __construct($name) { parent::__construct("input", $name); $this->set("type", "text"); $this->set("id", $name); $this->set("class", "date"); }
public function __construct($util, $get = null) { parent::__construct($util); $data["auth"] = $this->setViewMenu(); $this->view->init('corpsaccueil.php', $data); $this->setViewBas(); }
public function __construct($util, $get = null) { parent::__construct($util); $this->setViewMenu(); $suff = $get["q"]; $this->view->init('corpsaccueil' . $suff . '.php', null); $this->setViewBas(); }
/** * Construct * @param IComponentContainer $parent * @param string $name */ public function __construct(IComponentContainer $parent = NULL, $name = NULL) { parent::__construct($parent, $name); $this->properties = new ArrayObject(); // set default prepare handlers $this->onCheckItem[] = callback($this, "checkItem"); $this->onCheckItem[] = callback($this, "cleanItem"); }
public function __construct() { parent::__construct(); Tools::import('Model.User'); Tools::import('Util.Msg'); $this->_mUser = new Model_User(); $this->_uMsg = Util_Msg::returnInstance(); }
/** * @throws \LogicException */ public function __construct() { parent::__construct(Environment::getApplication()->presenter, 'UserPanel'); if (Environment::getApplication()->presenter === NULL) { throw new LogicException('UserPanel must be registered in BasePresenter::startup(), not in bootstrap.'); } $this->user = Environment::getUser(); }
function __construct($parent, $id, $args = array()) { if (!isset($args['validation'])) { $args['validation'] = array(); } array_unshift($args['validation'], array('callback' => array($this, 'valid_email'), 'msg' => 'Sorry, that is not a valid email address.')); parent::__construct($parent, $id, $args); }
/** * Class constructor. * * @param array $options Element options * @param array $attr HTML attributes */ public function __construct(array $options = [], array $attr = []) { if (!isset($attr['placeholder'])) { $attr['placeholder'] = function () { return $this->getOption('label') ? null : $this->getDescription(); }; } parent::__construct($options, $attr); }
public function __construct($name, $text = null, array $attributes = array()) { parent::__construct('input'); $this->setAttribute('type', 'button'); $this->setName($name); if ($text !== null) { $this->setAttribute('value', $text); } $this->setAttributes($attributes); }
/** * Data grid constructor. * @return void */ public function __construct() { parent::__construct(); // intentionally without any arguments (because of session loadState) $this->paginator = new Paginator(); $session = $this->getSession(); if (!$session->isStarted()) { $session->start(); } }
function __construct() { parent::__construct(); Tools::import('Util.Msg'); $this->_uMsg = Util_Msg::returnInstance(); $this->_checkOrderCondition(); //检测是否有权限 Tools::import('Model.Remark'); $this->_mRemark = new Model_Remark(); }
public function __construct(array $form) { if (empty($form['rows'])) { $form['rows'] = 5; } if (empty($form['cols'])) { $form['cols'] = 50; } parent::__construct($form, array('value')); }
public function __construct($util, $get = null) { parent::__construct($util); $this->model(); $model = new Model(); $data["nomfic"] = $model->exporter($util->getId()); $this->setViewMenu(); $this->view->init('sauvebase.php', $data); $this->setViewBas(); }