Difference between revisions of "PHPLights/Documentation/liblights/LsFactory"
From Linuxnetworks
< PHPLights | Documentation | liblights
(initial) |
(update) |
||
| Line 1: | Line 1: | ||
== Synopsis == | == Synopsis == | ||
| − | class LsFactory | + | abstract class LsFactory |
{ | { | ||
| − | public | + | public function create( |
| − | $ | + | $classname, |
| + | $interface = NULL | ||
| + | ) | ||
| + | public function createObject( | ||
| + | $classname, | ||
$interface = NULL, | $interface = NULL, | ||
| − | array $ | + | array $arglist = array(), |
| + | $object = NULL | ||
| + | ) | ||
| + | |||
| + | protected function getArgString( | ||
| + | $numargs, | ||
| + | $argname = '$arglist' | ||
) | ) | ||
} | } | ||
| Line 16: | Line 26: | ||
=== create() === | === create() === | ||
| − | public | + | public function create( |
| − | $ | + | $classname, |
| + | $interface = NULL | ||
| + | ) | ||
| + | |||
| + | === createObject() === | ||
| + | |||
| + | public function createObject( | ||
| + | $classname, | ||
$interface = NULL, | $interface = NULL, | ||
| − | array $ | + | array $arglist = array(), |
| + | $object = NULL | ||
| + | ) | ||
| + | |||
| + | == Protected functions == | ||
| + | |||
| + | === getArgString() === | ||
| + | |||
| + | protected function getArgString( | ||
| + | $numargs, | ||
| + | $argname = '$arglist' | ||
) | ) | ||
Latest revision as of 13:26, 6 October 2007
Contents
Synopsis
abstract class LsFactory
{
public function create(
$classname,
$interface = NULL
)
public function createObject(
$classname,
$interface = NULL,
array $arglist = array(),
$object = NULL
)
protected function getArgString(
$numargs,
$argname = '$arglist'
)
}
Description
Public functions
create()
public function create( $classname, $interface = NULL )
createObject()
public function createObject( $classname, $interface = NULL, array $arglist = array(), $object = NULL )
Protected functions
getArgString()
protected function getArgString( $numargs, $argname = '$arglist' )
Back to Overview