Example #1
0
 protected function getSettings()
 {
     try {
         $settings = \Model_Settings::select('item')->setMaxResults(1)->getQuery()->getResult();
         if (count($settings) > 0) {
             return $settings[0];
         }
     } catch (\Exception $e) {
     }
     return array();
 }
Example #2
0
 /**
  * Gets an array copy of the site settings, if one exists
  */
 protected function getSettings()
 {
     if (!class_exists('Model_Settings')) {
         return array();
     }
     $result = \Model_Settings::select('item')->getQuery()->getArrayResult();
     if (count($result)) {
         return $result[0];
     }
     return array();
 }