Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
0b18ce5f
Commit
0b18ce5f
authored
10 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
PHPDoc + missing return statements
parent
be3527ab
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/adherents/class/adherent.class.php
+7
-3
7 additions, 3 deletions
htdocs/adherents/class/adherent.class.php
htdocs/adherents/class/adherent_type.class.php
+5
-5
5 additions, 5 deletions
htdocs/adherents/class/adherent_type.class.php
with
12 additions
and
8 deletions
htdocs/adherents/class/adherent.class.php
+
7
−
3
View file @
0b18ce5f
...
...
@@ -45,7 +45,10 @@ class Adherent extends CommonObject
var
$mesgs
;
var
$id
;
var
$ref
;
public
$ref_ext
;
var
$civility_id
;
var
$firstname
;
var
$lastname
;
...
...
@@ -107,6 +110,7 @@ class Adherent extends CommonObject
var
$oldcopy
;
// To contains a clone of this when we need to save old properties of object
public
$entity
;
/**
* Constructor
...
...
@@ -1237,7 +1241,7 @@ class Adherent extends CommonObject
/**
* Insert subscription into database and eventually add links to banks, mailman, etc...
*
* @param
timestamp
$date Date of effect of subscription
* @param
int
$date Date of effect of subscription
* @param double $montant Amount of subscription (0 accepted for some members)
* @param int $accountid Id bank account
* @param string $operation Type operation (if Id bank account provided)
...
...
@@ -1245,7 +1249,7 @@ class Adherent extends CommonObject
* @param string $num_chq Numero cheque (if Id bank account provided)
* @param string $emetteur_nom Name of cheque writer
* @param string $emetteur_banque Name of bank of cheque
* @param
timestamp
$datesubend Date end subscription
* @param
int
$datesubend Date end subscription
* @return int rowid of record added, <0 if KO
*/
function
cotisation
(
$date
,
$montant
,
$accountid
=
0
,
$operation
=
''
,
$label
=
''
,
$num_chq
=
''
,
$emetteur_nom
=
''
,
$emetteur_banque
=
''
,
$datesubend
=
0
)
...
...
@@ -1601,7 +1605,7 @@ class Adherent extends CommonObject
*
* @param int $statut Id statut
* @param int $need_subscription 1 si type adherent avec cotisation, 0 sinon
* @param
timestamp
$date_end_subscription Date fin adhesion
* @param
int
$date_end_subscription Date fin adhesion
* @param int $mode 0=libelle long, 1=libelle court, 2=Picto + Libelle court, 3=Picto, 4=Picto + Libelle long, 5=Libelle court + Picto
* @return string Label
*/
...
...
This diff is collapsed.
Click to expand it.
htdocs/adherents/class/adherent_type.class.php
+
5
−
5
View file @
0b18ce5f
...
...
@@ -60,7 +60,7 @@ class AdherentType extends CommonObject
* Fonction qui permet de creer le status de l'adherent
*
* @param User $user User making creation
* @return >0 if OK, < 0 if KO
* @return
int
>0 if OK, < 0 if KO
*/
function
create
(
$user
)
{
...
...
@@ -248,13 +248,13 @@ class AdherentType extends CommonObject
$i
++
;
}
}
return
$projets
;
}
else
{
print
$this
->
db
->
error
();
}
return
$projets
;
}
...
...
@@ -287,7 +287,7 @@ class AdherentType extends CommonObject
/**
* getMailOnValid
*
* @return Return mail model
* @return
string
Return mail model
*/
function
getMailOnValid
()
{
...
...
@@ -306,7 +306,7 @@ class AdherentType extends CommonObject
/**
* getMailOnSubscription
*
* @return Return mail model
* @return
string
Return mail model
*/
function
getMailOnSubscription
()
{
...
...
@@ -325,7 +325,7 @@ class AdherentType extends CommonObject
/**
* getMailOnResiliate
*
* @return Return mail model
* @return
string
Return mail model
*/
function
getMailOnResiliate
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment