Wallmander\ElasticsearchIndexer\Model\Log::get PHP Method

get() public static method

Get entire log.
public static get ( ) : string
return string
    public static function get()
    {
        if (file_exists(static::getFilePath())) {
            return file_get_contents(static::getFilePath());
        }
        return '';
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Admin Status Page.
  */
 public static function getStatus()
 {
     $indices = Elasticsearch::getIndices();
     $logs = Log::get();
     require ESI_PATH . '/views/admin/status.php';
 }