當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Control::__construct方法代碼示例

本文整理匯總了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);
 }
開發者ID:cokita,項目名稱:srp,代碼行數:7,代碼來源:AdminProducao.php

示例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);
 }
開發者ID:cokita,項目名稱:srp,代碼行數:7,代碼來源:AdminDashboard_Estatistica.php

示例3: __construct

 public function __construct(array $form)
 {
     if (isset($form['label'])) {
         $form['label'] = t('Введите символы с картинки');
     }
     return parent::__construct($form);
 }
開發者ID:umonkey,項目名稱:molinos-cms,代碼行數:7,代碼來源:control.captcha.php

示例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();
 }
開發者ID:PierreBeillon,項目名稱:SuiviSIO,代碼行數:32,代碼來源:Valid.class.php

示例5: __construct

 public function __construct(IComponentContainer $parent = NULL, $name = NULL)
 {
     parent::__construct($parent, $name);
     $this->db = dibi::getConnection();
     self::$count++;
     //		$this->setWebloaderPaths();
 }
開發者ID:radypala,項目名稱:maga-website,代碼行數:7,代碼來源:BaseControl.php

示例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);
 }
開發者ID:karelklima,項目名稱:nette-navigation-builder,代碼行數:12,代碼來源:Navigation.php

示例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);
 }
開發者ID:cokita,項目名稱:srp,代碼行數:7,代碼來源:AdminProducao_Cadastro.php

示例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);
 }
開發者ID:cocona,項目名稱:core,代碼行數:12,代碼來源:Textarea.php

示例9: __construct

 public function __construct(array $form)
 {
     parent::__construct($form, array('label'));
     if (empty($this->label)) {
         $this->label = '?';
     }
 }
開發者ID:umonkey,項目名稱:molinos-cms,代碼行數:7,代碼來源:control.fieldset.php

示例10: index

 function index()
 {
     //載入模型
     parent::__construct();
     $this->question = $this->Model('mquestion');
     $this->scores = $this->Model('mscores');
 }
開發者ID:healthguo,項目名稱:PHP,代碼行數:7,代碼來源:index.php

示例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');
 }
開發者ID:romain-pierre,項目名稱:core,代碼行數:12,代碼來源:Proceed.php

示例12: __construct

 public function __construct($name, array $attributes = array())
 {
     parent::__construct('input');
     $this->setAttribute('type', 'text');
     $this->setName($name);
     $this->setAttributes($attributes);
 }
開發者ID:robik,項目名稱:QForm,代碼行數:7,代碼來源:TextBox.php

示例13: __construct

 public function __construct(array $form)
 {
     if (empty($form['description'])) {
         $form['description'] = t('Формат: «ГГГГ-ММ-ДД ЧЧ:ММ:СС», время можно опустить.');
     }
     parent::__construct($form, array('value'));
 }
開發者ID:umonkey,項目名稱:molinos-cms,代碼行數:7,代碼來源:control.datetime.php

示例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);
 }
開發者ID:cokita,項目名稱:srp,代碼行數:7,代碼來源:AdminImagem.php

示例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();
         }
     }
 }
開發者ID:PierreBeillon,項目名稱:SuiviSIO,代碼行數:29,代碼來源:Passprof.class.php


注:本文中的Control::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。