note 51974 added to ref.spl

From: Date: Sun, 17 Apr 2005 14:24:55 +0000
Subject: note 51974 added to ref.spl
Groups: php.notes 
Request: Send a blank email to php-notes+get-88123@lists.php.net to get a copy of this message
I'v done with my PluginsManager... Sample code to use plugins may looks lije this: <?php require_once('lib/plugins-manager.inc.php'); // Load and use conctere plugin module $p = new Plugin('test.class.php'); $test = $p->class_factory('test', 1, 2); $test->foo(); // ... oneliner ;) $p = $pm['test.class.php']->class_factory('test', 1, 2)->foo(); // Scan for plugable modules, construct an instance and call foo() $pm = new PluginsManager('.'); foreach ($pm as $p) { $p->class_factory('test', 1, 2)->foo(); } ?> You may download php files at my tw.o page: http://tikiwiki.org/tiki-index.php?page=UserPagezaufi (see page attachments below) ---- Manual Page -- http://www.php.net/manual/en/ref.spl.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51974 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51974&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51974&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51974&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51974&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51974&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51974&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88123) next »