public function getStatusLog($checkRecent = false)
    {
        if (!isset($this->_statusLog)) {
            $this->_statusLog = Cacher::get([get_called_class(), $this->primaryKey, $this->created]);
            if (empty($this->_statusLog)) {
                if (is_null($this->message)) {
                    $this->_statusLog = $this->_startStatus();
                } else {
                    $this->_statusLog = unserialize($this->message);
                }
            } elseif ($checkRecent) {
                $testStatusLog = unserialize($this->message);
                if ($testStatusLog && $testStatusLog->lastUpdate > $this->_statusLog->lastUpdate) {
                    $this->_statusLog = $testStatusLog;
                }
            }
            if (empty($this->_statusLog)) {
                $this->_statusLog = new Status();
            }
        }
        $this->_statusLog->log = $this;

        return $this->_statusLog;
    }
public function getStatusLog($checkRecent = false)
    {
        if (!isset($this->_statusLog)) {
            $this->_statusLog = Cacher::get([get_called_class(), $this->primaryKey, $this->created]);
            if (empty($this->_statusLog)) {
                if (is_null($this->message)) {
                    $this->_statusLog = $this->_startStatus();
                } else {
                    $this->_statusLog = unserialize($this->message);
                }
            } elseif ($checkRecent) {
                $testStatusLog = unserialize($this->message);
                if ($testStatusLog && $testStatusLog->lastUpdate > $this->_statusLog->lastUpdate) {
                    $this->_statusLog = $testStatusLog;
                }
            }
            if (empty($this->_statusLog)) {
                $this->_statusLog = new Status();
            }
        }
        $this->_statusLog->log = $this;

        return $this->_statusLog;
    }
public function getStatusLog ( $ checkRecent = false ) { if ( ! isset ( $ this -> _statusLog ) ) { $ this -> _statusLog = Cacher :: get ( [ get_called_class ( ) , $ this -> primaryKey , $ this -> created ] ) ; if ( empty ( $ this -> _statusLog ) ) { if ( is_null ( $ this -> message ) ) { $ this -> _statusLog = $ this -> _startStatus ( ) ; } else { $ this -> _statusLog = unserialize ( $ this -> message ) ; } } elseif ( $ checkRecent ) { $ testStatusLog = unserialize ( $ this -> message ) ; if ( $ testStatusLog && $ testStatusLog -> lastUpdate > $ this -> _statusLog -> lastUpdate ) { $ this -> _statusLog = $ testStatusLog ; } } if ( empty ( $ this -> _statusLog ) ) { $ this -> _statusLog = new Status ( ) ; } } $ this -> _statusLog -> log = $ this ; return $ this -> _statusLog ; }
Get status log.

@param boolean $checkRecent [[@doctodo param_description:checkRecent]] [optional]

@return [[@doctodo return_type:getStatusLog]] [[@doctodo return_description:getStatusLog]]
Get status log .