Example #1
0
 /** Constructor. */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'mfa_apitoken';
     $this->_key = 'apitoken_id';
     $this->_mainData = array('apitoken_id' => array('type' => MIDAS_DATA), 'user_id' => array('type' => MIDAS_DATA), 'token_id' => array('type' => MIDAS_DATA), 'creation_date' => array('type' => MIDAS_DATA), 'user' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'User', 'parent_column' => 'user_id', 'child_column' => 'user_id'));
     $this->initialize();
     // required
 }
 /** constructor */
 public function __construct()
 {
     parent::__construct();
     $this->_name = 'mfa_otpdevice';
     $this->_key = 'otpdevice_id';
     $this->_mainData = array('otpdevice_id' => array('type' => MIDAS_DATA), 'user_id' => array('type' => MIDAS_DATA), 'secret' => array('type' => MIDAS_DATA), 'algorithm' => array('type' => MIDAS_DATA), 'counter' => array('type' => MIDAS_DATA), 'length' => array('type' => MIDAS_DATA), 'user' => array('type' => MIDAS_MANY_TO_ONE, 'model' => 'User', 'parent_column' => 'user_id', 'child_column' => 'user_id'));
     $this->initialize();
     // required
 }