initComponents($components); if ($components != self::INIT_NONE) { $this->db = Db::get(); } if ($components & self::INIT_USER) { $this->user = User::alloc(); } if ($components & self::INIT_OPTIONS) { $this->options = Options::alloc(); } if ($components & self::INIT_SECURITY) { $this->security = Security::alloc(); } $this->initParameter($this->parameter); } /** * @param int $components */ protected function initComponents(int &$components) { } /** * @param Config $parameter */ protected function initParameter(Config $parameter) { } }