public function __construct($config = null) { parent::__construct(); if (is_array($config)) { $this->config($config); } }
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(); }
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); } } }