New: Add errorsToString function
This commit is contained in:
parent
314d45a9ee
commit
c276283d9f
@ -51,6 +51,16 @@ abstract class CommonObject
|
|||||||
// No constructor as it is an abstract class
|
// 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)
|
* Return full name (civility+' '+name+' '+lastname)
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user