Merge branch 'maint/7.0'
[ninja.git] / modules / orm / models / object.php
blobe06585572ea8ef9e4b3c24e3248eeee0c69dd046
1 <?php
3 require_once( dirname(__FILE__).'/base/baseobject.php' );
5 /**
6 * Describes a single object from livestatus
7 */
8 abstract class Object_Model extends BaseObject_Model {
9 /**
10 * Get the table of the current object
12 public function get_table() {
13 return $this->_table;
16 /**
17 * Get a list of custom variables related to the object, if possible
19 public function get_custom_variables() {
20 return array();
23 /**
24 * Get the current logged in username
26 public function get_current_user() {
27 return Auth::instance()->get_user()->username;