mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
add some comments
This commit is contained in:
parent
ceed62bf2b
commit
3acd9a2237
|
@ -244,6 +244,7 @@ class SeedDMS_Core_Object { /* {{{ */
|
|||
$sep = substr($attrdef->getValueSet(), 0, 1);
|
||||
$value = $sep.implode($sep, $value);
|
||||
}
|
||||
/* Handle the case if an attribute is not set already */
|
||||
if(!isset($this->_attributes[$attrdef->getId()])) {
|
||||
switch(get_class($this)) {
|
||||
case $this->_dms->getClassname('document'):
|
||||
|
@ -271,6 +272,7 @@ class SeedDMS_Core_Object { /* {{{ */
|
|||
return true;
|
||||
}
|
||||
|
||||
/* The attribute already exists. setValue() will either update or delete it. */
|
||||
$this->_attributes[$attrdef->getId()]->setValue($value);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user