From e1ff272d8fe684dea152485079987932754c4880 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Wed, 4 Aug 2004 14:03:07 +0000 Subject: [PATCH] Se agrega documentacion a los metodos - popGroup - pushGroup - getGroup - exists --- lib/MLIB/Tpl/FileDir.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/lib/MLIB/Tpl/FileDir.php b/lib/MLIB/Tpl/FileDir.php index db5721e..f5c12ab 100644 --- a/lib/MLIB/Tpl/FileDir.php +++ b/lib/MLIB/Tpl/FileDir.php @@ -112,21 +112,50 @@ class MLIB_Tpl_FileDir extends /* implements */ MLIB_Tpl } } + /** + * Push a new item into the group array. + * + * @param group Item to be added on the group array. + * + * @todo Add an example. + */ function pushGroup($group = '') { $this->group[] = $group; } + /** + * Pops the actual group from the group array. + * + * @return mixed. + * @todo Add an example. + */ function popGroup() { return array_pop($this->group); } + /** + * Returns the last element of the group array. + * + * @return mixed. + * @todo Add an example. + */ function getGroup() { return end($this->group); } + /** + * Checks if a certain template file exists. + * + * @param name Template file name. + * @param group If it is true, search in the group directory, otherwise + * checks only in the root path. + * + * @return bool. + * @todo Add an example. + */ function exists($name, $group = null) { $tpl = $this->getFileContent($this->getFilename($name, $group)); -- 2.43.0