diff --git a/include/class_contact.php b/include/class_contact.php
index c8daafb66..e4b0f2ef0 100644
--- a/include/class_contact.php
+++ b/include/class_contact.php
@@ -75,7 +75,7 @@ class contact extends Fiche
ad_id=1 and ad_value ~* '$p_search') ";
}
// Get The result Array
- $step_contact=$this->GetAll($offset,$search.$extra_sql.$p_sql);
+ $step_contact=$this->get_by_category($offset,$search.$extra_sql.$p_sql);
if ( $all_contact == 0 ) return "";
$r=$bar;
diff --git a/include/class_fiche.php b/include/class_fiche.php
index 10f1c3667..6f2d97e09 100644
--- a/include/class_fiche.php
+++ b/include/class_fiche.php
@@ -396,7 +396,7 @@ class Fiche
*\exception Exception if the cat of card doesn't exist, Exception.getCode()=1
*\see fiche::insert()
*/
- function toArray($pfd_id)
+ function to_array($pfd_id)
{
$sql="select 'av_text'||to_char(ad_id,'9999') as key,".
" ad_text ".
@@ -426,7 +426,7 @@ class Fiche
{
// array = array of attribute object sorted on ad_id
$f=new Fiche_Def($this->cn,$p_fiche_def);
- $f->Get();
+ $f->get();
$array=$f->getAttribut();
$r=h2('Catégorie '.$f->label,"");
$r.='
';
@@ -995,7 +995,7 @@ class Fiche
// Get the fiche_def.fd_id from fiche.f_id
$this->Get();
$fiche_def=new Fiche_Def($this->cn,$this->fiche_def);
- $fiche_def->Get();
+ $fiche_def->get();
// if the card is used do not removed it
$qcode=$this->strAttribut(ATTR_DEF_QUICKCODE);
@@ -1051,7 +1051,7 @@ class Fiche
* \param $p_search sql condition
* \return array of fiche object
*/
- function GetAll($p_offset=-1,$p_search="",$p_order='')
+ function get_by_category($p_offset=-1,$p_search="",$p_order='')
{
return fiche::GetByDef($this->fiche_def_ref,$p_offset,$p_search,$p_order);
}
@@ -1557,7 +1557,7 @@ class Fiche
ad_id in (1,32,30,23,18,13) and ad_value ~* '$p_search')";
}
// Get The result Array
- $step_tiers=$this->GetAll($offset,$search.$filter_amount,'name');
+ $step_tiers=$this->get_by_category($offset,$search.$filter_amount,'name');
if ( $all_tiers == 0 || count($step_tiers)==0 ) return "";
$r="";
@@ -1912,7 +1912,7 @@ class Fiche
echo '';
if ( isset ($_GET['go_card']))
{
- $empty=$a->toArray($_GET['fd_id']);
+ $empty=$a->to_array($_GET['fd_id']);
print_r($empty);
}
}
diff --git a/include/class_fiche_def.php b/include/class_fiche_def.php
index 186179cce..5bb428a67 100644
--- a/include/class_fiche_def.php
+++ b/include/class_fiche_def.php
@@ -102,7 +102,7 @@ class Fiche_Def
* \brief Get attribut of the fiche_def
*
*/
- function Get()
+ function get()
{
if ( $this->id == 0 )
return 0;
@@ -127,7 +127,7 @@ class Fiche_Def
*
* \return an array of fiche_def object
*/
- function GetAll()
+ function get_all()
{
$sql="select * from fiche_def ";
@@ -368,7 +368,7 @@ $order
*/
function myList()
{
- $this->Get();
+ $this->get();
echo ''.$this->id." ".$this->label.'
';
$step=$_SESSION['g_pagesize'];
@@ -759,7 +759,7 @@ $order
$r = "";
// Save the label
- $this->Get();
+ $this->get();
$this->GetAttribut();
$r.= '' . $this->id . " " . h($this->label) . '
';
$r.='