activity_model.php
3 months ago
agent_meta_model.php
3 months ago
agent_model.php
3 months ago
booking_meta_model.php
3 months ago
booking_model.php
20 hours ago
bundle_meta_model.php
3 months ago
bundle_model.php
1 week ago
cart_item_model.php
3 months ago
cart_meta_model.php
3 months ago
cart_model.php
2 weeks ago
connector_model.php
3 months ago
customer_meta_model.php
3 months ago
customer_model.php
1 month ago
invoice_model.php
2 weeks ago
join_bundles_services_model.php
3 months ago
location_category_model.php
3 months ago
location_model.php
3 months ago
meta_model.php
3 months ago
model.php
2 days ago
off_period_model.php
3 months ago
order_intent_meta_model.php
3 months ago
order_intent_model.php
1 week ago
order_item_model.php
3 months ago
order_meta_model.php
3 months ago
order_model.php
1 month ago
otp_model.php
3 months ago
payment_request_model.php
3 months ago
process_job_model.php
3 months ago
process_model.php
1 month ago
recurrence_model.php
3 months ago
service_category_model.php
3 months ago
service_meta_model.php
3 months ago
service_model.php
3 months ago
session_model.php
3 months ago
settings_model.php
3 months ago
step_settings_model.php
3 months ago
transaction_intent_model.php
3 months ago
transaction_model.php
3 months ago
transaction_refund_model.php
3 months ago
work_period_model.php
3 months ago
session_model.php
54 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( |
| 22 | 'id', |
| 23 | 'session_key', |
| 24 | 'session_value', |
| 25 | 'hash', |
| 26 | 'expiration', |
| 27 | ); |
| 28 | return $allowed_params; |
| 29 | } |
| 30 | |
| 31 | protected function params_to_save( $role = 'admin' ) { |
| 32 | $params_to_save = array( |
| 33 | 'id', |
| 34 | 'session_key', |
| 35 | 'session_value', |
| 36 | 'hash', |
| 37 | 'expiration', |
| 38 | ); |
| 39 | return $params_to_save; |
| 40 | } |
| 41 | |
| 42 | |
| 43 | protected function before_create() { |
| 44 | } |
| 45 | |
| 46 | protected function set_defaults() { |
| 47 | } |
| 48 | |
| 49 | protected function properties_to_validate() { |
| 50 | $validations = array(); |
| 51 | return $validations; |
| 52 | } |
| 53 | } |
| 54 |