public function load($oid = null, $strip = false, $skipUpdate = false) { global $AppUI; // use parent function to load the given object $loaded = parent::load($oid, $strip); /* ** Update the values of a dynamic task from ** the children's properties each time the ** dynamic task is loaded. ** Additionally store the values in the db. ** Only treat umbrella tasks of dynamics '1'. */ if ($this->task_dynamic == 1 && !$skipUpdate) { // update task from children $this->htmlDecode(); $this->updateDynamics(true); /* ** Use parent function to store the updated values in the db ** instead of store function of this object in order to ** prevent from infinite loops. */ parent::store($AppUI); $loaded = parent::load($oid, $strip); } // return whether the object load process has been successful or not return $loaded; }
public function load($oid = null, $strip = true) { return parent::load($oid, $strip); }