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
689d2705
Commit
689d2705
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Doxygen
parent
bfd97922
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/class/commonobject.class.php
+42
-20
42 additions, 20 deletions
htdocs/core/class/commonobject.class.php
htdocs/core/class/fiscalyear.class.php
+1
-1
1 addition, 1 deletion
htdocs/core/class/fiscalyear.class.php
with
43 additions
and
21 deletions
htdocs/core/class/commonobject.class.php
+
42
−
20
View file @
689d2705
...
...
@@ -35,45 +35,67 @@
*/
abstract
class
CommonObject
{
public
$db
;
/**
* @var db Database handler (result of a new DoliDB)
*/
public
$db
;
/**
* @var error Error string
* @deprecated Use instead the array of error strings
* @var error
Error string
* @deprecated
Use instead the array of error strings
*/
public
$error
;
/**
* @var errors
A
ray of error string
* @var errors
Ar
ray of error string
*/
public
$errors
;
public
$canvas
;
// Contains canvas name if it is
public
$context
=
array
();
// Use to pass context information
/**
* @var string Column name of the ref field.
*/
protected
$table_ref_field
=
''
;
public
$name
;
public
$lastname
;
public
$firstname
;
public
$civility_id
;
public
$import_key
;
/**
* @var context Can be used to pass information when only object is provied to method
*/
public
$context
=
array
();
public
$array_options
=
array
();
/**
* @var context Contains canvas name if record is an alternative canvas record
*/
public
$canvas
;
/**
* @var
Societe
* @var
import_key Key value used to track if data is coming from import wizard
*/
public
$
thirdpart
y
;
public
$
import_ke
y
;
public
$linkedObjectsIds
;
// Loaded by ->fetchObjectLinked
public
$linkedObjects
;
// Loaded by ->fetchObjectLinked
/**
* @var array_options Contains data to manage extrafields
*/
public
$array_options
=
array
();
// No constructor as it is an abstract class
/**
* @var linkedObjectsIds Array of linked objects ids. Loaded by ->fetchObjectLinked
*/
public
$linkedObjectsIds
;
/**
* Column name of the ref field.
* @var string
* @var linkedObjectsIds Array of linked objects. Loaded by ->fetchObjectLinked
*/
protected
$table_ref_field
=
''
;
public
$linkedObjects
;
// Following var are used by some objects only. We keep this property here in CommonObject to be able to provide common method using them.
public
$name
;
public
$lastname
;
public
$firstname
;
public
$civility_id
;
public
$thirdparty
;
// No constructor as it is an abstract class
/**
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/class/fiscalyear.class.php
+
1
−
1
View file @
689d2705
...
...
@@ -26,7 +26,7 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
/**
* Class to manage fiscal year
*/
class
Fiscalyear
class
Fiscalyear
extends
CommonObject
{
public
$element
=
'fiscalyear'
;
public
$table_element
=
'accounting_fiscalyear'
;
...
...
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