本文整理汇总了PHP中sql::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP sql::__construct方法的具体用法?PHP sql::__construct怎么用?PHP sql::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sql
的用法示例。
在下文中一共展示了sql::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
function __construct($semaine, $site, $log)
{
parent::__construct();
$this->semaine = $semaine;
$this->site = $site;
$this->log = $log;
}
示例2:
/**
* Initialisation des variables
* @param String $prenom
* @param String $nom
* @param String $email
*/
function __construct($prenom, $nom, $email)
{
parent::__construct();
$this->prenom = $prenom;
$this->nom = $nom;
$this->email = $email;
}
示例3: strtoupper
function __construct($cod = NULL)
{
parent::__construct('ent');
$this->cod = $cod;
if (empty($this->cod)) {
$this->cod = $_POST["cod"];
$this->nome = strtoupper($_POST["nome"]);
}
}
示例4: __construct
/**
* Initialisation des variables
* @param int $semaine
* @param int $user
* @param int $site
* @param int $log
* @param boolean $pension
* @param boolean $menage
*/
public function __construct($semaine, $user, $site, $log, $pension, $menage)
{
parent::__construct();
$this->semaine = $semaine;
$this->user = $user;
$this->site = $site;
$this->log = $log;
$this->pension = $pension;
$this->menage = $menage;
}
示例5:
/**
* Initialisation des variables
* @param int $id_site
* @param int $id_log
* @param int $nb
* @param boolean $entree
* @param int $piece
* @param int $lit
* @param boolean $wc
* @param boolean $balcon
* @param boolean $cloison
* @param boolean $douche
*/
function __construct($id_site, $id_log, $nb, $entree, $piece, $lit, $wc, $balcon, $cloison, $douche, $prix)
{
parent::__construct();
$this->id_site = $id_site;
$this->id_log = $id_log;
$this->nb = $nb;
$this->entree = $entree;
$this->piece = $piece;
$this->lit = $lit;
$this->wc = $wc;
$this->balcon = $balcon;
$this->cloison = $cloison;
$this->douche = $douche;
$this->prix = $prix;
}
示例6: strtoupper
function __construct($protocolo = NULL)
{
parent::__construct('usu');
$this->protocolo = $protocolo;
!empty($_POST["usu_cod_form"]) ? $this->formulario = $_POST["usu_cod_form"] : "''";
!empty($_POST["usu_nome"]) ? $this->nome = strtoupper($_POST["usu_nome"]) : "''";
!empty($_POST["usu_abreviatura"]) ? $this->abreviatura = strtoupper($_POST["usu_abreviatura"]) : "''";
!empty($_POST["usu_dt_nascto"]) ? $this->nascimento = $_POST["usu_dt_nascto"] : "''";
!empty($_POST["usu_telefone"]) ? $this->fone = $_POST["usu_telefone"] : "''";
!empty($_POST["usu_turno"]) ? $this->turno = strtoupper($_POST["usu_turno"]) : "''";
!empty($_POST["usu_serie"]) ? $this->serie = strtoupper($_POST["usu_serie"]) : "''";
!empty($_POST["usu_ent_id"]) ? $this->escola = strtoupper($_POST["usu_ent_id"]) : "''";
!empty($_POST["usu_endereco"]) ? $this->logradouro = strtoupper($_POST["usu_endereco"]) : "''";
!empty($_POST["usu_end_num"]) ? $this->numero = $_POST["usu_end_num"] : "''";
!empty($_POST["usu_bairro"]) ? $this->bairro = strtoupper($_POST["usu_bairro"]) : "''";
!empty($_POST["usu_resp_nome"]) ? $this->responsavel = strtoupper($_POST["usu_resp_nome"]) : "''";
!empty($_POST["usu_protoloco"]) ? $this->protocolo = $_POST["usu_protoloco"] : "''";
!empty($_GET['id']) ? $this->id = $_GET['id'] : false;
}
示例7:
function __construct($protocolo = NULL)
{
parent::__construct("usu");
$this->protocolo = $protocolo;
$this->lineExport();
}
示例8:
/**
* Initialiser les variables
* @param int $reserv
* @param int $user
*/
function __construct($user)
{
parent::__construct();
$this->user = $user;
}
示例9:
/**
* Initialisation des variables
*/
function __construct($montant, $id)
{
parent::__construct();
$this->montant = $montant;
$this->id = $id;
}
示例10:
function __construct()
{
parent::__construct("protocolo");
}
示例11:
function __construct($id = NULL)
{
parent::__construct("usu");
$this->id = $id;
$this->lineExport();
}
示例12: __construct
/**
* Sets login variables
* @param <string> $id
* @param <string> $pw
*/
public function __construct($id = null, $pw = null)
{
parent::__construct(SQL_ID, SQL_PW, SQL_DB);
$this->id = $id;
$this->pw = md5($pw);
}
示例13:
function __construct($nom, $mdp)
{
parent::__construct();
$this->nom = $nom;
$this->mdp = $mdp;
}
示例14:
/**
* Mise en place de la variable $zone
*/
function __construct($zone)
{
parent::__construct();
$this->zone = $zone;
}
示例15: __construct
/**
* Initialisation des variables
* @param String $site
*/
public function __construct($site)
{
parent::__construct();
$this->site = $site;
}