From: vincent@cubedesigners.com Date: Mon, 17 Jan 2011 10:42:23 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=383ef1a96296918ec0cbb15443ccb66758cc73a6;p=cubeextranet.git --- diff --git a/inc/commons/DAO/_common.php b/inc/commons/DAO/_common.php index 443da0785..d554fefda 100644 --- a/inc/commons/DAO/_common.php +++ b/inc/commons/DAO/_common.php @@ -1,4 +1,5 @@ \ No newline at end of file diff --git a/inc/commons/DAO/class.common.dao.equipier.php b/inc/commons/DAO/class.common.dao.equipier.php new file mode 100644 index 000000000..c04acda35 --- /dev/null +++ b/inc/commons/DAO/class.common.dao.equipier.php @@ -0,0 +1,47 @@ +utilisateur_id = $r->utilisateur_id; + $utilisateur->agence = $r->agence; + return parent::singleton($r); + } + + public function cree($utilisateur = null) + { + $utilisateur = new extranetEquipier(); + $utilisateur->agence = 'Paris'; + $utilisateur->grade = 1; + return parent::cree($utilisateur); + } + + public function selectById($equipier_id) + { + $r = $this->con->select('SELECT * FROM equipiers WHERE utilisateur_id=' . $this->core->con->escape($equipier_id) . ' LIMIT 1'); + return $this->singleton($r); + } + + public function selectAll(){ + $r=$this->con->select('SELECT * FROM equipiers'); + return $this->factory($r); + } + + public function getListe($q = null, $orderby = null, $sens = null, $limit = null, $search_id = true) + { + global $core; + + $sql = $this->getQueryList('equipiers', $q, $orderby, $sens, $limit, $search_id); + + $r = $this->con->select($sql); + return $this->factory($r); + } + + public function count() + { + $r = $this->con->select('SELECT COUNT(*) AS nb FROM equipiers'); + return $r->nb; + } +} + +?> \ No newline at end of file diff --git a/inc/extranet/DAO/class.extranet.dao.equipier.php b/inc/extranet/DAO/class.extranet.dao.equipier.php deleted file mode 100644 index 4219fc2e7..000000000 --- a/inc/extranet/DAO/class.extranet.dao.equipier.php +++ /dev/null @@ -1,47 +0,0 @@ -utilisateur_id = $r->utilisateur_id; - $utilisateur->agence = $r->agence; - return parent::singleton($r); - } - - public function cree($utilisateur = null) - { - $utilisateur = new extranetEquipier(); - $utilisateur->agence = 'Paris'; - $utilisateur->grade = 1; - return parent::cree($utilisateur); - } - - public function selectById($equipier_id) - { - $r = $this->con->select('SELECT * FROM equipiers WHERE utilisateur_id=' . $this->core->con->escape($equipier_id) . ' LIMIT 1'); - return $this->singleton($r); - } - - public function selectAll(){ - $r=$this->con->select('SELECT * FROM equipiers'); - return $this->factory($r); - } - - public function getListe($q = null, $orderby = null, $sens = null, $limit = null, $search_id = true) - { - global $core; - - $sql = $this->getQueryList('equipiers', $q, $orderby, $sens, $limit, $search_id); - - $r = $this->con->select($sql); - return $this->factory($r); - } - - public function count() - { - $r = $this->con->select('SELECT COUNT(*) AS nb FROM equipiers'); - return $r->nb; - } -} - -?> \ No newline at end of file