public function Gardener::getName in Backup and migrate prune 7
Same name and namespace in other branches
- 7.2 class/Gardener.php \Gardener::getName()
Get the name for the gardener
Return value
The name object associated with this gardener
1 call to Gardener::getName()
- Gardener::save in class/
Gardener.php - Persist the settings for this gardener
File
- class/
Gardener.php, line 366 - Gardener class implementation file
Class
- Gardener
- Gardener class implementation
Code
public function getName() {
// Get cached settings
if (empty($this->name)) {
// Load the record from the database
$name = db_select('backup_migrate_gardener', 'bmg')
->fields('bmg', array(
'name',
))
->condition('bmg.gardener_id', $this
->getId())
->execute()
->fetchField();
if (isset($name)) {
$this
->setName($name);
}
}
return $this->name;
}