activity_model.php
1 year ago
agent_meta_model.php
1 year ago
agent_model.php
1 year ago
booking_meta_model.php
1 year ago
booking_model.php
1 year ago
bundle_model.php
1 year ago
cart_item_model.php
1 year ago
cart_meta_model.php
1 year ago
cart_model.php
1 year ago
connector_model.php
1 year ago
customer_meta_model.php
1 year ago
customer_model.php
1 year ago
invoice_model.php
1 year ago
join_bundles_services_model.php
1 year ago
location_category_model.php
1 year ago
location_model.php
1 year ago
meta_model.php
1 year ago
model.php
1 year ago
order_intent_meta_model.php
1 year ago
order_intent_model.php
1 year ago
order_item_model.php
1 year ago
order_meta_model.php
1 year ago
order_model.php
1 year ago
payment_request_model.php
1 year ago
process_job_model.php
1 year ago
process_model.php
1 year ago
service_category_model.php
1 year ago
service_meta_model.php
1 year ago
service_model.php
1 year ago
session_model.php
1 year ago
settings_model.php
1 year ago
step_settings_model.php
1 year ago
transaction_intent_model.php
1 year ago
transaction_model.php
1 year ago
transaction_refund_model.php
1 year ago
work_period_model.php
1 year ago
session_model.php
51 lines
| 1 | <?php |
| 2 | |
| 3 | class OsSessionModel extends OsModel{ |
| 4 | public $id, |
| 5 | $session_key, |
| 6 | $session_value, |
| 7 | $hash, |
| 8 | $expiration; |
| 9 | |
| 10 | function __construct($id = false){ |
| 11 | parent::__construct(); |
| 12 | $this->table_name = LATEPOINT_TABLE_SESSIONS; |
| 13 | $this->nice_names = array(); |
| 14 | |
| 15 | if($id){ |
| 16 | $this->load_by_id($id); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | protected function allowed_params($role = 'admin'){ |
| 21 | $allowed_params = array('id', |
| 22 | 'session_key', |
| 23 | 'session_value', |
| 24 | 'hash', |
| 25 | 'expiration', |
| 26 | ); |
| 27 | return $allowed_params; |
| 28 | } |
| 29 | |
| 30 | protected function params_to_save($role = 'admin'){ |
| 31 | $params_to_save = array('id', |
| 32 | 'session_key', |
| 33 | 'session_value', |
| 34 | 'hash', |
| 35 | 'expiration', |
| 36 | ); |
| 37 | return $params_to_save; |
| 38 | } |
| 39 | |
| 40 | |
| 41 | protected function before_create(){ |
| 42 | } |
| 43 | |
| 44 | protected function set_defaults(){ |
| 45 | } |
| 46 | |
| 47 | protected function properties_to_validate(){ |
| 48 | $validations = array(); |
| 49 | return $validations; |
| 50 | } |
| 51 | } |