Core/Model.php
public function load($id = null)
    {
        if (!is_null($id)) {
            $this->setId($id);
        }

        $this->isLoaded = false;
        $data = $this->getDbGateway()->load($this->getId());
        if ($data) {
            $this->setData($data);
            $this->isLoaded = true;
        }

        return $this->isLoaded();
    }
public function load($id = null)
    {
        if (!is_null($id)) {
            $this->setId($id);
        }

        $this->isLoaded = false;
        $data = $this->getDbGateway()->load($this->getId());
        if ($data) {
            $this->setData($data);
            $this->isLoaded = true;
        }

        return $this->isLoaded();
    }
public function load ( $ id = null ) { if ( ! is_null ( $ id ) ) { $ this -> setId ( $ id ) ; } $ this -> isLoaded = false ; $ data = $ this -> getDbGateway ( ) -> load ( $ this -> getId ( ) ) ; if ( $ data ) { $ this -> setData ( $ data ) ; $ this -> isLoaded = true ; } return $ this -> isLoaded ( ) ; }
Method for loading model, if loaded returns true.

@param string $id model id

@return bool
Method for loading model if loaded returns true .