コード例 #1
0
ファイル: subscriptions.php プロジェクト: jfquestiaux/fabrik
 /**
  * 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);
 }
コード例 #2
0
ファイル: rest.php プロジェクト: jfquestiaux/fabrik
 /**
  * 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();
 }