PluginProbe
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce / 1.4.0
ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce v1.4.0
1.17.9 1.17.8 1.17.7 1.17.6 1.17.5 1.17.4 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.3.0 1.3.1 1.3.11 1.3.12 1.3.13 1.3.14 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 143 releases
erp / includes / framework / Model.php

Model.php in ERP: Complete HR, Accounting & CRM Suite Built for WooCommerce 1.4.0, at includes/framework/Model.php

40 lines 819 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WeDevs\ERP\Framework;
4
5 /**
6 * Class Model
7 *
8 * @package WeDevs\ERP\Framework
9 */
10 class Model extends \WeDevs\ORM\Eloquent\Model {
11
12 /**
13 * Get the table name with WP prefix
14 *
15 * @return string
16 */
17 public function getTable() {
18 return $this->getConnection()->db->prefix . $this->table;
19 }
20
21 /**
22 * Set the value of the "created at" attribute.
23 *
24 * @param mixed $value
25 * @return void
26 */
27 public function setCreatedAt( $value ) {
28 $this->{static::CREATED_AT} = current_time( 'mysql' );
29 }
30
31 /**
32 * Set the value of the "updated at" attribute.
33 *
34 * @param mixed $value
35 * @return void
36 */
37 public function setUpdatedAt( $value ) {
38 $this->{static::UPDATED_AT} = current_time( 'mysql' );
39 }
40 }