aboutsummaryrefslogtreecommitdiff
path: root/src/phorkie/Repository
diff options
context:
space:
mode:
Diffstat (limited to 'src/phorkie/Repository')
-rw-r--r--src/phorkie/Repository/Post.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php
index a61f2a2..511a83c 100644
--- a/src/phorkie/Repository/Post.php
+++ b/src/phorkie/Repository/Post.php
@@ -5,6 +5,16 @@ class Repository_Post
{
public $repo;
+ /**
+ * When a new file is created during processing, its name
+ * is stored here for later use.
+ *
+ * @var string
+ */
+ public $newfileName;
+
+
+
public function __construct(Repository $repo = null)
{
$this->repo = $repo;
@@ -76,6 +86,7 @@ class Repository_Post
//automatically append file extension if none is there
$name .= '.' . $arFile['type'];
}
+ $this->newfileName = $name;
} else if (!$this->repo->hasFile($orignalName)) {
//unknown file
//FIXME: Show error message