/** * Load initial properties from this object. * @param ICON $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('title', $obj->title); $this->set_value('category', $obj->category); $this->set_value('url', $obj->url); }
/** * Load initial properties from this object. * @param AUDITABLE $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('time_modified', $obj->time_modified); if (isset($this->_history_item)) { $this->_history_item->record_differences($obj); $this->_history_item->prepare_for_storage(); if (empty($this->_history_item->system_description)) { $this->_history_item->system_description = 'No changes.'; } $this->add_preview($this->_history_item, 'Modifications', $this->previewing()); } }
/** * Load initial properties from this object. * @param OBJECT_IN_FOLDER $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->add_preview($obj, $obj->title_as_html(), false); $this->set_value('remove_resources', true); $type_info = $this->_object->type_info(); $field = $this->field_at('remove_resources'); $field->description = '<strong>Uncheck</strong> if this is a duplicate (e.g. another ' . $type_info->singular_title . ' uses the same files).'; }
/** * Load initial properties from this branch. * @param SEARCH $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('search_title', $obj->title); $this->set_value('search_description', $obj->description); $this->_search_fields->load_from_object($this, $obj); }
/** * Load initial properties from this object. * @param THEME $obj */ public function load_from_object($obj) { parent::load_from_object($obj); $this->set_value('title', $obj->title); $this->set_value('main_CSS_file_name', $obj->main_CSS_file_name); $this->set_value('font_name_CSS_file_name', $obj->font_name_CSS_file_name); $this->set_value('font_size_CSS_file_name', $obj->font_size_CSS_file_name); $this->set_value('icon_set', $obj->icon_set); $this->set_value('icon_extension', $obj->icon_extension); $this->set_value('renderer_class_name', $obj->renderer_class_name); }