You are here

public function Gardener::getCreated in Backup and migrate prune 7

Same name and namespace in other branches
  1. 7.2 class/Gardener.php \Gardener::getCreated()

Get the creation date for the gardener

Return value

The name object associated with this gardener

1 call to Gardener::getCreated()
Gardener::save in class/Gardener.php
Persist the settings for this gardener

File

class/Gardener.php, line 398
Gardener class implementation file

Class

Gardener
Gardener class implementation

Code

public function getCreated() {

  // Get cached settings
  if (empty($this->created)) {

    // Load the record from the database
    $created = db_select('backup_migrate_gardener', 'bmg')
      ->fields('bmg', array(
      'created',
    ))
      ->condition('bmg.gardener_id', $this
      ->getId())
      ->execute()
      ->fetchField();
    if (isset($created)) {
      $this
        ->setCreated($created);
    }
  }
  return $this->created;
}