git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Configuration for default sort order
[phinde.git]
/
src
/
phinde
/
Helper.php
diff --git
a/src/phinde/Helper.php
b/src/phinde/Helper.php
index 00215fee0ca72b0cdb5d1fee5f175d8b46ad0202..aeb8ba5d4e8c08874963fc5cf2b28843677d753f 100644
(file)
--- a/
src/phinde/Helper.php
+++ b/
src/phinde/Helper.php
@@
-77,5
+77,14
@@
class Helper
$diff = microtime(true) - static::$timer[$timer];
echo '+timer: ' . number_format($diff, 3) . 'ms ' . $timer . "\n";
}
$diff = microtime(true) - static::$timer[$timer];
echo '+timer: ' . number_format($diff, 3) . 'ms ' . $timer . "\n";
}
+
+ public static function baseDoc($url)
+ {
+ $esDoc = new \stdClass();
+ $esDoc->status = new \stdClass();
+ $esDoc->url = $url;
+ $esDoc->schemalessUrl = Helper::noSchema($url);
+ return $esDoc;
+ }
}
?>
}
?>