concrete/src/Logging/LogEntry.php
public static function getByID($logID)
    {
        $app = Application::getFacadeApplication();
        $db = $app->make('database')->connection();
        $row = $db->fetchAssoc('select * from Logs where logID = ?', [$logID]);
        if ($row) {
            $obj = new static();
            $obj = array_to_object($obj, $row);

            return $obj;
        }
    }
public static function getByID($logID)
    {
        $app = Application::getFacadeApplication();
        $db = $app->make('database')->connection();
        $row = $db->fetchAssoc('select * from Logs where logID = ?', [$logID]);
        if ($row) {
            $obj = new static();
            $obj = array_to_object($obj, $row);

            return $obj;
        }
    }
public static function getByID ( $ logID ) { $ app = Application :: getFacadeApplication ( ) ; $ db = $ app -> make ( 'database' ) -> connection ( ) ; $ row = $ db -> fetchAssoc ( 'select * from Logs where logID = ?' , [ $ logID ] ) ; if ( $ row ) { $ obj = new static ( ) ; $ obj = array_to_object ( $ obj , $ row ) ; return $ obj ; } }
Gets the log object from its id.

@param int $logID Id of the log

@return LogEntry|null
Gets the log object from its id .