/** * Load initial properties from this object. * @param ATTACHMENT $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('type', $obj->type); }
/** * @param RELEASE $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('sub_history_item_publication_state', History_item_silent); $this->_previews = array(); $this->add_preview($obj, 'Purge Release details', true); }
public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('sub_history_item_publication_state', History_item_silent); }
/** * Load initial properties from this object. * @param OBJECT_IN_FOLDER $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_visible('purge', $this->_is_purge_visible($obj)); $this->set_visible('remove_resources', $this->_is_purge_visible($obj)); $this->set_enabled('remove_resources', false); $type_info = $this->_object->type_info(); $field = $this->field_at('purge'); if ($this->login->is_allowed($this->_privilege_set, Privilege_view_hidden, $this->_object)) { $field->description = 'This ' . $type_info->singular_title . ' will be marked as deleted and hidden from non-admin users. Purging removes it permanently and cannot be undone.'; } else { $field->description = 'This ' . $type_info->singular_title . ' will be marked as deleted and hidden from you. Purging removes it permanently and cannot be undone.'; } }