New: Add errorsToString function
This commit is contained in:
parent
314d45a9ee
commit
c276283d9f
1 changed files with 10 additions and 0 deletions
|
|
@ -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)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue