Beispiel #1
0
 public function __construct($config = null)
 {
     parent::__construct();
     if (is_array($config)) {
         $this->config($config);
     }
 }
Beispiel #2
0
 public function __construct($config = null)
 {
     parent::__construct();
     if (is_array($config)) {
         $this->config($config);
     }
     if (!$this->config('storage')) {
         $this->config('storage', self::FILE);
     }
     self::$_messages = array();
 }
Beispiel #3
0
 public function __construct($data = null)
 {
     parent::__construct();
     if (DevValue::isNotNull($data)) {
         if (DevArray::isAssoc($data)) {
             $this->config($data);
             // $this->dirname = $this->config('root') ? $this->config('root') : getcwd();
         } elseif (is_string($data)) {
             $this->getInfo($data);
         }
     }
 }