|
|
File: ../phpdbedittk/command_factory.php
PHPDBEditTk -
command_factory
command_factory
Implements a factory method pattern
|
private class command_factory
Implements a factory method pattern
Implements the constructor class that producescommand classes depending on the type of the command. Thisresembles the 'Factory Method' pattern. There is only onemethod in this class, because this method wouldnormally be in gadm_command, but php doesn't support thereturn of subclasses through the topclass constructor.
|
|
|
|
Private Method Details |
produce_command |
private void produce_command( string $comtype, string $optable, string $fieldname, object genericadmin &$gadm )
|
|
Produces an command
This is only a wrapper to get around the problem described in theclass description.
|
Parameter |
|
string |
$comtype |
|
|
type of the command |
|
|
string |
$optable |
|
|
table the command is attached to |
|
|
string |
$fieldname |
|
|
fieldname the command is attached to |
|
|
object genericadmin |
&$gadm |
|
|
reference of the initiator if the command |
|
Returns |
void |
|
|
|
|
PHPDoc 1.0beta |