예제 #1
0
 /**
  * Class constructor ;
  *
  * @param   : $aModule (array) - contain some information about this module;
  *                  [ id ]           - (integer) module's  id ;
  *                  [ title ]        - (string)  module's  title ;
  *                  [ vendor ]       - (string)  module's  vendor ;
  *                  [ path ]         - (string)  path to this module ;
  *                  [ uri ]          - (string)  this module's URI ;
  *                  [ class_prefix ] - (string)  this module's php classes file prefix ;
  *                  [ db_prefix ]    - (string)  this module's Db tables prefix ;
  *                  [ date ]         - (string)  this module's date installation ;
  */
 function __construct(&$aModule)
 {
     parent::__construct($aModule);
     require_once BX_DIRECTORY_PATH_PLUGINS . 'facebook-php-sdk/src/Facebook/autoload.php';
     // Create our Application instance.
     $this->oFacebook = null;
     if ($this->_oConfig->mApiID) {
         session_start();
         $this->oFacebook = new Facebook\Facebook(array('app_id' => $this->_oConfig->mApiID, 'app_secret' => $this->_oConfig->mApiSecret, 'default_graph_version' => 'v2.4'));
     }
 }
예제 #2
0
 /**
  * Generate admin page;
  *
  * @return : (text) - html presentation data;
  */
 function actionAdministration()
 {
     parent::_actionAdministration('bx_tricon_api_key', '_bx_tricon_settings', '_bx_tricon_information', '_bx_tricon_information_block');
 }