From 806479cc17bc2a4d7e5f35d89018b76c841d193f Mon Sep 17 00:00:00 2001 From: Christian Raunitschka Date: Mon, 11 May 2015 13:17:49 +0200 Subject: [PATCH] add content property --- owzim/blick/Asset.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/owzim/blick/Asset.php b/owzim/blick/Asset.php index 3a1e0fe..d4fdfd8 100644 --- a/owzim/blick/Asset.php +++ b/owzim/blick/Asset.php @@ -314,6 +314,17 @@ protected function getParam() 'version' => $this->version )); } + + /** + * getContent + * + * @see __get + * @return string + */ + protected function getContent() + { + return file_exists($this->path) ? file_get_contents($this->path) : ''; + } /** * getMarkup