public function saveCurrent()
    {
        if ($this->saveEnabled() && $this->isViewValid() && $this->isViewUnique())
        {
            $success = $this->saveCurrentModel();

            // Keep on only if the model save has succeeded
            if ($success)
            {
                $this->storeCurrentHash();

                $this->saveTrackables(
                    $this->getCurrent(),
                    $success
                );
            }

            return $success;
        }

        return false;
    }
public function saveCurrent()
    {
        if ($this->saveEnabled() && $this->isViewValid() && $this->isViewUnique())
        {
            $success = $this->saveCurrentModel();

            // Keep on only if the model save has succeeded
            if ($success)
            {
                $this->storeCurrentHash();

                $this->saveTrackables(
                    $this->getCurrent(),
                    $success
                );
            }

            return $success;
        }

        return false;
    }
public function saveCurrent ( ) { if ( $ this -> saveEnabled ( ) && $ this -> isViewValid ( ) && $ this -> isViewUnique ( ) ) { $ success = $ this -> saveCurrentModel ( ) ; // Keep on only if the model save has succeeded if ( $ success ) { $ this -> storeCurrentHash ( ) ; $ this -> saveTrackables ( $ this -> getCurrent ( ) , $ success ) ; } return $ success ; } return false ; }
Persists the current site view to database

@return bool
Persists the current site view to database