[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5623 - in phpcompta/trunk/include: . ext/dummy
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5623 - in phpcompta/trunk/include: . ext/dummy |
Date: |
Fri, 27 Dec 2013 00:38:01 +0100 (CET) |
Author: danydb
Date: 2013-12-27 00:38:01 +0100 (Fri, 27 Dec 2013)
New Revision: 5623
Modified:
phpcompta/trunk/include/class_contact.php
phpcompta/trunk/include/class_fiche.php
phpcompta/trunk/include/class_fiche_def.php
phpcompta/trunk/include/ext/dummy/dummy.php
phpcompta/trunk/include/fiche.inc.php
Log:
refactor : rename function
Modified: phpcompta/trunk/include/class_contact.php
===================================================================
--- phpcompta/trunk/include/class_contact.php 2013-12-26 23:37:16 UTC (rev
5622)
+++ phpcompta/trunk/include/class_contact.php 2013-12-26 23:38:01 UTC (rev
5623)
@@ -75,7 +75,7 @@
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;
Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php 2013-12-26 23:37:16 UTC (rev
5622)
+++ phpcompta/trunk/include/class_fiche.php 2013-12-26 23:38:01 UTC (rev
5623)
@@ -396,7 +396,7 @@
*\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 @@
{
// 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.='<table style="width:98%;margin:1%">';
@@ -995,7 +995,7 @@
// 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 @@
* \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 @@
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 @@
echo '</form>';
if ( isset ($_GET['go_card']))
{
- $empty=$a->toArray($_GET['fd_id']);
+ $empty=$a->to_array($_GET['fd_id']);
print_r($empty);
}
}
Modified: phpcompta/trunk/include/class_fiche_def.php
===================================================================
--- phpcompta/trunk/include/class_fiche_def.php 2013-12-26 23:37:16 UTC (rev
5622)
+++ phpcompta/trunk/include/class_fiche_def.php 2013-12-26 23:38:01 UTC (rev
5623)
@@ -102,7 +102,7 @@
* \brief Get attribut of the fiche_def
*
*/
- function Get()
+ function get()
{
if ( $this->id == 0 )
return 0;
@@ -127,7 +127,7 @@
*
* \return an array of fiche_def object
*/
- function GetAll()
+ function get_all()
{
$sql="select * from fiche_def ";
@@ -368,7 +368,7 @@
*/
function myList()
{
- $this->Get();
+ $this->get();
echo '<H2 class="info">'.$this->id." ".$this->label.'</H2>';
$step=$_SESSION['g_pagesize'];
@@ -759,7 +759,7 @@
$r = "";
// Save the label
- $this->Get();
+ $this->get();
$this->GetAttribut();
$r.= '<H2 class="info">' . $this->id . " " . h($this->label) .
'</H2>';
$r.='<fieldset><legend>Données générales</legend>';
Modified: phpcompta/trunk/include/ext/dummy/dummy.php
===================================================================
--- phpcompta/trunk/include/ext/dummy/dummy.php 2013-12-26 23:37:16 UTC (rev
5622)
+++ phpcompta/trunk/include/ext/dummy/dummy.php 2013-12-26 23:38:01 UTC (rev
5623)
@@ -42,7 +42,7 @@
// get parce qu'on interroge
if ( isset($_GET['display_prop'])){
$a=new Fiche($cn);
- $prop=$a->toArray($_GET['fd_id']);
+ $prop=$a->to_array($_GET['fd_id']);
foreach ($prop as $key=>$value) echo "Index : $key valeur
$value <br/>";
echo '<form method="POST" action="extension.php"
enctype="multipart/form-data">';
@@ -70,7 +70,7 @@
// On récupère les propriétés de cette catégorie de fiche
$client=new Fiche($cn);
// $array contient toutes les valeurs nécessaires à Fiche::insert,
- $array=$client->toArray($_POST['fd_id']);
+ $array=$client->to_array($_POST['fd_id']);
while ( ($data=fgetcsv($f))==true) {
// remarque : on a éliminé les traitements d'erreur
Modified: phpcompta/trunk/include/fiche.inc.php
===================================================================
--- phpcompta/trunk/include/fiche.inc.php 2013-12-26 23:37:16 UTC (rev
5622)
+++ phpcompta/trunk/include/fiche.inc.php 2013-12-26 23:38:01 UTC (rev
5623)
@@ -127,7 +127,7 @@
$allcard = (isset($_GET['allcard'])) ? 1 : 0;
if ( $allcard == 0 ){
$fiche_def=new Fiche_Def($cn,$_GET['cat']);
- $fiche_def->Get();
+ $fiche_def->get();
echo h1($fiche_def->label,"");
echo h2($fiche_def->fd_description,"");
}
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5623 - in phpcompta/trunk/include: . ext/dummy,
phpcompta-dev <=