/** * OutputComponent constructor. * * @param string $name Component name. * @param Config|null $config Config object. * @param Language|null $langObj Language object. * @param LogicComponent[] $logicComponents Logic component on which this component depends on. * @param ISF $sf Simple Framework instasnce. */ public function __construct($name, Config $config = null, Language $langObj = null, array $logicComponents, ISF $sf) { parent::__construct($name, $config, $logicComponents, $sf); $this->langObj = $langObj; }
/** * LogicComponent constructor. * * @param string $name Name of the component. * @param Config|null $config Config object. * @param IDbFactory|null $db Database factory object. * @param LogicComponent[] $logicComponents Logic component that this component depends on. * @param ISF $sf Simple Framework instance. */ public function __construct($name, Config $config = null, IDbFactory $db = null, array $logicComponents = array(), ISF $sf) { parent::__construct($name, $config, $logicComponents, $sf); $this->dbFactory = $db; }