function execute(&$system, $args) { if (!is_array($args)) $args = array(); // This should be checked and possibly moved to the settingsscript if (isset($args['meta']) || isset($args['rebuild_thumb'])) { $node_id = $this->getNodeId($args); if ($node_id > 0) { $object = new mObject($node_id); if ($object->hasRight("write")) { if (isset($args['meta'])) $object->setMeta($args['meta'], $args['value']); // Special case for files if (isset($args['rebuild_thumb'])) delThumbnails($args['rebuild_thumb']); clearNodeFileCache($object->getNodeId()); } } } $node_id = $this->getNodeId($args); if ($node_id > 0) { $object = new mObject($node_id); $_SESSION['murrix']['path'] = $object->getPathInTree(); } $system->triggerEventIntern("newlocation", $args); }
function Remove() { delThumbnails($this->value_id); @unlink($this->getValue()); return parent::Remove(); }