/** * Construct * * @param object &$subject Subject to observer * @param array $config Config */ public function __construct(&$subject, $config = array()) { // Include the JLog class. jimport('joomla.log.log'); // Add the logger. JLog::addLogger(array('text_file' => 'fabrik.subs.log.php')); parent::__construct($subject, $config); }
/** * Constructor * * @param object &$subject The object to observe * @param array $config An array that holds the plugin configuration */ public function __construct(&$subject, $config = array()) { parent::__construct($subject, $config); $this->oAuth = new FabrikOauth(); }