New: Add errorsToString function

This commit is contained in:
Laurent Destailleur
2013-06-28 12:44:17 +02:00
parent 314d45a9ee
commit c276283d9f

View File

@@ -51,6 +51,16 @@ abstract class CommonObject
// No constructor as it is an abstract class
/**
* Method to output saved errors
*
* @return string String with errors
*/
function errorsToString()
{
return $this->error.(is_array($this->errors)?(($this->error!=''?' ':'').join(',',$this->errors)):'');
}
/**
* Return full name (civility+' '+name+' '+lastname)
*