本文整理汇总了PHP中Control::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Control::__construct方法的具体用法?PHP Control::__construct怎么用?PHP Control::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Control
的用法示例。
在下文中一共展示了Control::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($params, $interface = "InterfaceProducao.html")
{
$this->producao = new ModelProducao();
$this->producaoDAO = new ProducaoDAO();
parent::__construct($params, $interface);
parent::paginado($this->producao, 15);
}
示例2: __construct
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);
}
示例3: __construct
public function __construct(array $form)
{
if (isset($form['label'])) {
$form['label'] = t('Введите символы с картинки');
}
return parent::__construct($form);
}
示例4: __construct
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();
}
示例5: __construct
public function __construct(IComponentContainer $parent = NULL, $name = NULL)
{
parent::__construct($parent, $name);
$this->db = dibi::getConnection();
self::$count++;
// $this->setWebloaderPaths();
}
示例6: __construct
/**
* 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);
}
示例7: __construct
public function __construct($params, $interface = "InterfaceProducao_Cadastro.html")
{
$this->producao = new ModelProducao();
$this->producaoDAO = new ProducaoDAO();
$this->sgv = 0;
parent::__construct($params, $interface);
}
示例8: __construct
/**
* @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);
}
示例9: __construct
public function __construct(array $form)
{
parent::__construct($form, array('label'));
if (empty($this->label)) {
$this->label = '?';
}
}
示例10: index
function index()
{
//载入模型
parent::__construct();
$this->question = $this->Model('mquestion');
$this->scores = $this->Model('mscores');
}
示例11: __construct
/**
* 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');
}
示例12: __construct
public function __construct($name, array $attributes = array())
{
parent::__construct('input');
$this->setAttribute('type', 'text');
$this->setName($name);
$this->setAttributes($attributes);
}
示例13: __construct
public function __construct(array $form)
{
if (empty($form['description'])) {
$form['description'] = t('Формат: «ГГГГ-ММ-ДД ЧЧ:ММ:СС», время можно опустить.');
}
parent::__construct($form, array('value'));
}
示例14: __construct
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);
}
示例15: __construct
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();
}
}
}