public function dsDisplay::load in Display Suite 6.3
Load a display
Parameters
$name (optional): The machine name which identifies the display. If not provided, the existing name will be used, if set.
Return value
either a complete display object, or FALSE
1 call to dsDisplay::load()
- dsDisplay::save in includes/
dsDisplay.php - Save this display to the database
File
- includes/
dsDisplay.php, line 85 - Class definition for a Display Suite Display object
Class
- dsDisplay
- The Display Suite Display object
Code
public function load($name = '') {
if (!empty($name)) {
$this->name = $name;
}
if (isset($this->name)) {
$stored_display = db_fetch_array(db_query("SELECT * FROM {ds_settings} WHERE name = '%s'", $this->name));
if (!empty($stored_display)) {
$this->dsid = $stored_display['dsid'];
$this->module = $stored_display['module'];
$this->type = $stored_display['type'];
$this->build_mode = $stored_display['build_mode'];
$this->settings = unserialize($stored_display['settings']);
$this->fields = unserialize($stored_display['fields']);
}
}
}