Exemple #1
0
 protected function getFormatters()
 {
     $objects = $this->getObjects('/formatter');
     $formatters = [];
     foreach ($objects as $object) {
         $name = Tools::className($object);
         $formatters[strtolower($name)] = __($name);
     }
     return $formatters;
 }
Exemple #2
0
 public function init()
 {
     parent::init();
     // Prepare Filename
     $this->filename = Inflector::underscore(Tools::className($this)) . '_' . date('Y-m-d');
 }