More Standardisation work.
This commit is contained in:
@@ -148,11 +148,29 @@ abstract class ORM extends lnApp_ORM {
|
||||
|
||||
/**
|
||||
* Name value return for the record
|
||||
*
|
||||
* @param $variable to enable further processing to determine name, eg: language
|
||||
*/
|
||||
public function name() {
|
||||
public function name($variable=NULL) {
|
||||
return sprintf('Unknown [%s]',$this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sub-Name value return for the record
|
||||
*
|
||||
* @param $variable to enable further processing to determine name, eg: language
|
||||
*/
|
||||
public function namesub($variable=NULL) {
|
||||
return sprintf('Unknown [%s]',$this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* A reference number relating to the object
|
||||
*/
|
||||
public function refnum($short=FALSE) {
|
||||
return ($short ? '' : 'x').sprintf('%06s',$this->id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the site ID attribute for each row update
|
||||
*/
|
||||
|
Reference in New Issue
Block a user