. if (!defined('EG')) die('Direct access not allowed!'); class HistoryModel extends Model_Tree { public function __construct() { $this->_tables = 'history'; $this->_idFields = 'id_history'; $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', ); $this->_popupWhere = array( 'created_by' => 'gr != "registered"', ); parent::__construct(); } }