public static function addChat($IDParent, $Type, $Tag, $Text, $IDUser = null) { $IDChat = parent::addChat($IDParent, $Text, $IDUser); $TheChat = new self(); $Data = array('Tag' => $Tag, 'Type' => $Type); return $TheChat->update($Data, "IDChat = '{$IDChat}'"); }