Esempio n. 1
0
 /**
  * Class constructor
  *
  * @param object $db                 Database connection object
  * @param string $dbTableNamePrefix  Prefix for database table names (optional, default is none)
  */
 public function __construct($db, $dbTableNamePrefix = '')
 {
     parent::__construct($db, $dbTableNamePrefix);
     if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci') {
         $this->date_format = 'd-M-Y';
     }
 }
Esempio n. 2
0
 /**
  * data_connector constructor.
  */
 public function __construct()
 {
     parent::__construct(null, 'enrol_lti_');
     // Set up table names.
     $this->consumertable = $this->dbTableNamePrefix . DataConnector::CONSUMER_TABLE_NAME;
     $this->contexttable = $this->dbTableNamePrefix . DataConnector::CONTEXT_TABLE_NAME;
     $this->noncetable = $this->dbTableNamePrefix . DataConnector::NONCE_TABLE_NAME;
     $this->resourcelinktable = $this->dbTableNamePrefix . DataConnector::RESOURCE_LINK_TABLE_NAME;
     $this->sharekeytable = $this->dbTableNamePrefix . DataConnector::RESOURCE_LINK_SHARE_KEY_TABLE_NAME;
     $this->toolproxytable = $this->dbTableNamePrefix . DataConnector::TOOL_PROXY_TABLE_NAME;
     $this->userresulttable = $this->dbTableNamePrefix . DataConnector::USER_RESULT_TABLE_NAME;
 }