Example #1
0
 function updateItem(array $args = array())
 {
     // Save the access property
     $this->properties['access']->setInputStatus(DataPropertyMaster::DD_INPUTSTATE_ADDMODIFY);
     // Ignore the position if this isn't the base document
     if (empty($this->properties['parent']->value)) {
         $this->properties['position']->setDisplayStatus(DataPropertyMaster::DD_DISPLAYSTATE_DISPLAYONLY);
     } else {
         $this->properties['position']->setDisplayStatus(DataPropertyMaster::DD_DISPLAYSTATE_DISABLED);
     }
     $this->fieldlist = array();
     return parent::updateItem($args);
 }