function _comment($fk_object, $ref, $element, $comment) { $PDOdb = new TPDOdb(); $t = new TTwiiit(); /*if($element == 'user' || $element =='company' || $element == 'contact') { $element_tag = '@'; } else { $element_tag = '#'; } //$element_tag.=$element.':'; $element_tag.=$ref; */ $t->fk_object = $fk_object; $t->comment = $comment; $t->type_object = $element; $t->ref = $ref; $t->save($PDOdb); }