Exemplo n.º 1
0
 function __construct($code = false)
 {
     parent::__construct();
     if ($code !== false) {
         $this->charger($code);
     }
 }
Exemplo n.º 2
0
 function __construct($declidisp = 0, $produit = 0)
 {
     parent::__construct();
     if ($declidisp > 0 && $produit > 0) {
         $this->charger($declidisp, $produit);
     }
 }
Exemplo n.º 3
0
 function __construct($url = "")
 {
     parent::__construct();
     if ($url != "") {
         $this->charger($url);
     }
 }
Exemplo n.º 4
0
 function __construct($produit = 0, $caracteristique = 0)
 {
     parent::__construct();
     if ($produit > 0 && $caracteristique > 0) {
         $this->charger($produit, $caracteristique);
     }
 }
 public function __construct($rubrique = 0, $caracteristique = 0)
 {
     parent::__construct();
     if ($rubrique > 0 && $caracteristique > 0) {
         $this->charger($rubrique, $caracteristique);
     }
 }
Exemplo n.º 6
0
 public function __construct($id = 0)
 {
     parent::__construct();
     if ($id > 0) {
         $this->charger($id);
     }
 }
Exemplo n.º 7
0
 public function delete()
 {
     if (!empty($this->id)) {
         $this->delete_cascade('Declidispdesc', 'declidisp', $this->id);
         parent::delete();
     }
 }
 public function __construct($rubrique = 0, $declinaison = 0)
 {
     parent::__construct();
     if ($rubrique > 0 && $declinaison > 0) {
         $this->charger($rubrique, $declinaison);
     }
 }
Exemplo n.º 9
0
 public function delete()
 {
     if (!empty($this->id)) {
         $this->delete_cascade('Messagedesc', 'message', $this->id);
         parent::delete();
     }
 }
Exemplo n.º 10
0
 public function delete()
 {
     if (!empty($this->id)) {
         $this->delete_cascade('Caracdispdesc', 'caracdisp', $this->id);
         $this->delete_cascade('Caracval', 'caracdisp', $this->id);
         parent::delete();
     }
 }
Exemplo n.º 11
0
 function add()
 {
     $this->datecrea = date('Y-m-d H:i:s');
     $this->id = parent::add();
     $this->ref = date("ymdHi") . genid($this->id, 6);
     $this->maj();
     return $this->id;
 }
 function charger_id($id)
 {
     if (parent::charger_id($id)) {
         $this->autorisation();
         return 1;
     } else {
         return 0;
     }
 }
 function __construct($nom = "")
 {
     parent::__construct();
     // Pour les plugins étourdis
     if ($nom == "") {
         $nom = strtolower(get_class($this));
     }
     $this->nom_plugin = $nom;
     $this->modulesdesc = new Modulesdesc($this->getNom());
 }
 /**
  * 
  * 
  * 
  * @param string $query
  * @param int $currentPage
  * @param int $maxPagesDisplayed
  * @param int $viewPerPage
  */
 public function __construct($query, $currentPage, $maxPagesDisplayed = 15, $viewPerPage = 30)
 {
     parent::__construct();
     $this->maxPagesDisplayed = $maxPagesDisplayed;
     $this->viewPerPage = $viewPerPage;
     $this->currentPage = $currentPage;
     try {
         $resul = $this->query($query, true);
         $this->totalResults = $this->get_result($resul, 0);
     } catch (Exception $e) {
         Tlog::error($e->getMessage());
         $this->totalResults = 0;
     }
     $this->calculatePages();
 }
Exemplo n.º 15
0
 public function delete()
 {
     // Supprimer les ventedeclidisp associés
     $this->delete_cascade('Ventedeclidisp', 'venteprod', $this->id);
     parent::delete();
 }
Exemplo n.º 16
0
 public function delete()
 {
     unset(self::$_cache[$this->nom]);
     parent::delete();
 }
Exemplo n.º 17
0
 /**
  * retourne le nombre d'occurence trouvé pour un couple colonne/valeur pour une table donnée. Il est obligatoire de spécifier la langue
  * ex : exist_key('chapo','foo','produitdesc',1)
  *
  * @param string $key colonne sur laquelle se porte la recherche
  * @param string $value valeur recherché
  * @param string $table nom de la table concerné
  * @param int $lang id de la langue
  * @return boolean/int retourne false si un problème survient. Le nombre de résultat sinon.
  * (attention, Cette fonction peut retourner FALSE, mais elle peut aussi retourner une valeur équivalent à FALSE. Veuillez lire la section sur les booléens (http://fr2.php.net/manual/fr/language.types.boolean.php) pour plus d'informations. Utilisez l'opérateur === (http://fr2.php.net/manual/fr/language.operators.comparison.php) pour tester la valeur de retour exacte de cette fonction.)
  */
 public static function exist_key($key, $value, $table, $lang)
 {
     return parent::exist_key($key, $value, $table, $lang);
 }
Exemplo n.º 18
0
 public function delete()
 {
     if (!empty($this->id)) {
         $this->delete_cascade('Venteprod', 'commande', $this->id);
         $this->delete_cascade('Venteadr', 'id', $this->adrfact);
         $this->delete_cascade('Venteadr', 'id', $this->adrlivr);
         parent::delete();
     }
 }
Exemplo n.º 19
0
 function __construct()
 {
     parent::__construct();
 }
 public function delete()
 {
     $this->before_delete();
     parent::delete();
 }