/** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * because func_get_args ( void ) returns a copy of all passed arguments NOT references. * This causes problems with cross-referencing necessary for the observer design pattern. * * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.5 */ function plgTiendaReport_salesbymanufacturer(&$subject, $config) { parent::__construct($subject, $config); $language = JFactory::getLanguage(); $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, 'en-GB', true); $language->load('plg_tienda_' . $this->_element, JPATH_ADMINISTRATOR, null, true); }
/** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * because func_get_args ( void ) returns a copy of all passed arguments NOT references. * This causes problems with cross-referencing necessary for the observer design pattern. * * @param object $subject The object to observe * @param array $config An array that holds the plugin configuration * @since 1.5 */ function plgTiendaReport_dailysales(&$subject, $config) { parent::__construct($subject, $config); $this->loadLanguage('', JPATH_ADMINISTRATOR); }