public function instance()
    {
        if (isset(self::$instances[$this->recordCode])) {
            return self::$instances[$this->recordCode];
        }

        if (!$item = $this->getSettingsRecord()) {
            $this->model->initSettingsData();
            $item = $this->model;
        }

        return self::$instances[$this->recordCode] = $item;
    }
public function instance()
    {
        if (isset(self::$instances[$this->recordCode])) {
            return self::$instances[$this->recordCode];
        }

        if (!$item = $this->getSettingsRecord()) {
            $this->model->initSettingsData();
            $item = $this->model;
        }

        return self::$instances[$this->recordCode] = $item;
    }
public function instance ( ) { if ( isset ( self :: $ instances [ $ this -> recordCode ] ) ) { return self :: $ instances [ $ this -> recordCode ] ; } if ( ! $ item = $ this -> getSettingsRecord ( ) ) { $ this -> model -> initSettingsData ( ) ; $ item = $ this -> model ; } return self :: $ instances [ $ this -> recordCode ] = $ item ; }
Create an instance of the settings model, intended as a static method
Create an instance of the settings model intended as a static method