2013-10-30 22:38:59 +01:00
|
|
|
<?php
|
|
|
|
require_once __DIR__ . '/../src/core.php';
|
|
|
|
|
2014-05-17 17:14:58 +02:00
|
|
|
Access::disablePrivilegeChecking();
|
2013-10-30 22:38:59 +01:00
|
|
|
|
|
|
|
array_shift($argv);
|
|
|
|
|
|
|
|
$query = array_shift($argv);
|
2014-05-17 17:14:58 +02:00
|
|
|
$posts = PostSearchService::getEntities($query, null, null);
|
2013-10-30 22:38:59 +01:00
|
|
|
foreach ($posts as $post)
|
|
|
|
{
|
|
|
|
echo implode("\t",
|
|
|
|
[
|
2014-05-17 17:14:58 +02:00
|
|
|
$post->getId(),
|
|
|
|
$post->getName(),
|
|
|
|
$post->tryGetWorkingFullPath(),
|
|
|
|
$post->getMimeType(),
|
2013-10-30 22:38:59 +01:00
|
|
|
]). PHP_EOL;
|
|
|
|
}
|