. if (!defined('EG')) die('Direct access not allowed!'); class HistoryModel extends Model_Tree { public function __construct() { $this->_tables = 'history'; $this->_idFields = 'id_history'; $this->_where=array( 'approved' => 'hardware', 'deleted' => 'hardware', 'cleared' => 'hardware', 'username' => 'regusers', ); $this->orderBy = 'history.id_history'; $this->_popupFunctions = array( 'created_by'=> 'getUserName', ); $this->_popupItemNames = array( 'type' => 'type', 'action' => 'action', 'created_by'=> 'created_by', ); $this->_popupLabels = array( 'type' => 'TYPE', 'action' => 'ACTION', 'created_by'=> 'MODERATOR', ); parent::__construct(); } }