예제 #1
0
 function __construct(\MongoCollection $shiftCollection)
 {
     if (!$shiftCollection instanceof \MongoCollection) {
         throw new userModelException('mongo collection is required!');
     }
     parent::__construct($shiftCollection);
     $this->setCollection($shiftCollection);
 }
 public function insertBPData()
 {
     //create the sql query
     $sql = "INSERT INTO log_bodymetrics (created, user, metric_id, metric_value) values (CURRENT_TIMESTAMP, " . $this->user . ",2,'" . $this->jsonData . "')";
     parent::__construct();
     parent::execQuery($sql, false);
     return true;
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct();
     global $settings;
     $this->settings = $settings;
     $this->wp_config = $this->get_wp_config();
     $this->wp_config_array = $this->get_wp_config_array();
     $this->default_themes = array('twentyfifteen' => 'Twenty Fifteen', 'twentyfourteen' => 'Twenty Fourteen', 'twentythirteen' => 'Twenty Thirteen', 'twentytwelve' => 'Twenty Twelve');
     // $this->helpers = new DashboardHelpers;
 }
예제 #4
0
 public function __construct()
 {
     //instantiate the model
     parent::__construct();
 }
예제 #5
0
 function __construct(\MongoCollection $tokenCollection)
 {
     parent::__construct($tokenCollection);
     $this->setCollection($tokenCollection);
 }