openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit c9e204e4f5a11dfeb45cc0c824e0b077b045ae9a
parent 2ac5c3da5ac2919553fa5e9be2b43f59f5d2d58f
Author: dankert <devnull@localhost>
Date:   Sun, 19 Dec 2004 22:49:02 +0100

Methode pathToObject()

Diffstat:
serviceClasses/Dynamic.class.php | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/serviceClasses/Dynamic.class.php b/serviceClasses/Dynamic.class.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.2 2004-12-19 15:25:12 dankert +// Revision 1.3 2004-12-19 21:49:02 dankert +// Methode pathToObject() +// +// Revision 1.2 2004/12/19 15:25:12 dankert // Anpassung Session-Funktionen // // Revision 1.1 2004/12/15 23:14:21 dankert @@ -125,4 +128,14 @@ class Dynamic { return Session::get( $var ); } + + + function pathToObject( $obj ) + { + if ( is_object($obj) ) + return $this->page->path_to_object($obj->objectid); + else + return $this->page->path_to_object($obj); + } + } \ No newline at end of file