getEmpty() public method

Get an empty item
public getEmpty ( ) : true
return true if succeed else false
Exemplo n.º 1
0
 /**
  * @since version 0.85
  *
  * @see CommonDBTM::getEmpty()
  **/
 function getEmpty()
 {
     parent::getEmpty();
     //Keep the same behavior as in previous versions
     $this->fields['open_window'] = 1;
 }
Exemplo n.º 2
0
 function getEmpty()
 {
     global $CFG_GLPI;
     parent::getEmpty();
     $this->fields["is_helpdesk_visible"] = $CFG_GLPI["default_software_helpdesk_visible"];
 }