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
8e3a3500
Commit
8e3a3500
authored
10 years ago
by
Maxime Kohlhaas
Browse files
Options
Downloads
Patches
Plain Diff
Add comments (for travis' sake)
parent
737cafef
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/class/extrafields.class.php
+4
-0
4 additions, 0 deletions
htdocs/core/class/extrafields.class.php
with
4 additions
and
0 deletions
htdocs/core/class/extrafields.class.php
+
4
−
0
View file @
8e3a3500
...
@@ -105,6 +105,7 @@ class ExtraFields
...
@@ -105,6 +105,7 @@ class ExtraFields
* @param int $required Is field required or not
* @param int $required Is field required or not
* @param string $default_value Defaulted value
* @param string $default_value Defaulted value
* @param array $param Params for field
* @param array $param Params for field
* @param int $alwayseditable Is attribute always editable regardless of the document status
* @return int <=0 if KO, >0 if OK
* @return int <=0 if KO, >0 if OK
*/
*/
function
addExtraField
(
$attrname
,
$label
,
$type
,
$pos
,
$size
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$default_value
=
''
,
$param
=
0
,
$alwayseditable
=
0
)
function
addExtraField
(
$attrname
,
$label
,
$type
,
$pos
,
$size
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$default_value
=
''
,
$param
=
0
,
$alwayseditable
=
0
)
...
@@ -219,6 +220,7 @@ class ExtraFields
...
@@ -219,6 +220,7 @@ class ExtraFields
* @param int $unique Is field unique or not
* @param int $unique Is field unique or not
* @param int $required Is field required or not
* @param int $required Is field required or not
* @param array||string $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param array||string $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param int $alwayseditable Is attribute always editable regardless of the document status
* @return int <=0 if KO, >0 if OK
* @return int <=0 if KO, >0 if OK
*/
*/
private
function
create_label
(
$attrname
,
$label
=
''
,
$type
=
''
,
$pos
=
0
,
$size
=
0
,
$elementtype
=
'member'
,
$unique
=
0
,
$required
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
private
function
create_label
(
$attrname
,
$label
=
''
,
$type
=
''
,
$pos
=
0
,
$size
=
0
,
$elementtype
=
'member'
,
$unique
=
0
,
$required
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
...
@@ -350,6 +352,7 @@ class ExtraFields
...
@@ -350,6 +352,7 @@ class ExtraFields
* @param int $required Is field required or not
* @param int $required Is field required or not
* @param int $pos Position of attribute
* @param int $pos Position of attribute
* @param array $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param array $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param int $alwayseditable Is attribute always editable regardless of the document status
* @return int >0 if OK, <=0 if KO
* @return int >0 if OK, <=0 if KO
*/
*/
function
update
(
$attrname
,
$label
,
$type
,
$length
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$pos
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
function
update
(
$attrname
,
$label
,
$type
,
$length
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$pos
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
...
@@ -435,6 +438,7 @@ class ExtraFields
...
@@ -435,6 +438,7 @@ class ExtraFields
* @param int $required Is field required or not
* @param int $required Is field required or not
* @param int $pos Position of attribute
* @param int $pos Position of attribute
* @param array $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param array $param Params for field (ex for select list : array('options' => array(value'=>'label of option')) )
* @param int $alwayseditable Is attribute always editable regardless of the document status
* @return int <=0 if KO, >0 if OK
* @return int <=0 if KO, >0 if OK
*/
*/
private
function
update_label
(
$attrname
,
$label
,
$type
,
$size
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$pos
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
private
function
update_label
(
$attrname
,
$label
,
$type
,
$size
,
$elementtype
,
$unique
=
0
,
$required
=
0
,
$pos
=
0
,
$param
=
''
,
$alwayseditable
=
0
)
...
...
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