Beispiel #1
0
 /**
  * @param Settings $pdo
  */
 public function __construct(Settings $pdo = null)
 {
     parent::__construct($pdo);
     $this->_git = new \nzedb\utility\Git();
     // Do not remove the full namespace/ PHP gets confused for some reason without it.
     $this->_vers = Misc::getValidVersionsFile();
     $this->_setColourMasks();
 }
Beispiel #2
0
 /**
  * @param Settings $pdo
  */
 public function __construct(Settings $pdo = null)
 {
     parent::__construct($pdo);
     $dateFormat = $this->pdo->getSetting(['section' => 'shell', 'subsection' => 'date', 'name' => 'format']);
     $this->_dateFormat = empty($dateFormat) ? '%Y-%m-%d %T' : $dateFormat;
 }