main->filesPath, DS); $query = array_shift($argv); $posts = Model_Post::getEntities($query, null, null); foreach ($posts as $post) { echo implode("\t", [ $post->id, $post->name, $filesPath . DS . $post->name, $post->mimeType, ]). PHP_EOL; }