phpPeanuts  2.2.0
phpPeanuts framework
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions
PntDbObjectTemplate Class Reference

Inherits PntDbObject.

Public Member Functions

 __construct ($id=null)
 
 initPropertyDescriptors ()
 
 getLabel ()
 
- Public Member Functions inherited from PntDbObject
 __construct ($id=0)
 
 initPropertyDescriptors ()
 
 addDbFieldProps ($includeList=null, $tableName=null)
 
 getLabel ()
 
 getLabelSeparator ()
 
initFromData ($assocArray, &$fieldMap)
 
 initMissingFields (&$missingFieldsMap)
 
 save ()
 
 isNew ()
 
 getSaveErrorMessages ()
 
 checkValueInOptions ($prop, &$errs)
 
 getValueNoOptionErrorMessage ($prop, $value)
 
 getValueWithIdNoOptionErrorMessage ($prop, $id)
 
 getPropsForCheckOptions ()
 
 delete ()
 
 recurseDelete ()
 
 recurseCopyFrom ($original, $fromProp=null)
 
 getPropsForRecurseCopy ($fromProp=null)
 
 copyValuesOf ($prop, $values)
 
 copyFrom ($original, $fromProp=null)
 
 registerCopyFrom ($original)
 
 addVerifyOnDeleteValues (&$result, $exclude=array())
 
 pntDelete ()
 
 getDeleteErrorMessages ($cascading=array())
 
 getOnDeleteProps ($cascading)
 
 getOnDeleteErrorMessage ($prop, $values)
 
 loadData ($id)
 
- Public Member Functions inherited from PntObject
 __construct ()
 
 copy ()
 
 getClass ()
 
 getClassDescriptor ()
 
 initPropertyDescriptors ()
 
 getOid ()
 
 addFieldProp ($name, $type, $readOnly=false, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null, $persistent=true)
 
 addDerivedProp ($name, $type, $readOnly=true, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null)
 
 addMultiValueProp ($name, $type, $readOnly=true, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null)
 
 getPropertyDescriptor ($propertyName)
 
 get ($propertyName, $filter=true)
 
 set ($propertyName, $value)
 
 getOptions ($name, $filter=true)
 
 getValueValidator ($prop)
 
 validateGetErrorString ($prop, $value, $validateReadOnly=true)
 
 basicGetLabel ()
 
 getLabel ()
 
 __toString ()
 
 release ()
 
 getEditInfo ()
 
 toString ()
 
 _getValueValidator ($prop)
 

Static Public Member Functions

static getTableName ()
 
static getClassDir ()
 
static getLabelSort ($subclass)
 
- Static Public Member Functions inherited from PntDbObject
static isPersistent ()
 
static getClassDescriptorClass ()
 
static getTableName ()
 
static getFilters ($className, $depth)
 
static getLabelSort ($subclass)
 
static newQueryHandler ()
 
- Static Public Member Functions inherited from PntObject
static isPersistent ()
 
static getClassDescriptorClass ()
 
static getClassDir ()
 
static getClassLabel ()
 
static getUiColumnPaths ()
 
static getReportColumnPaths ()
 
static getUiFieldPaths ($clsDes)
 
static newNavigation ($key, $itemType)
 

Additional Inherited Members

- Data Fields inherited from PntDbObject
 $id = 0
 

Constructor & Destructor Documentation

__construct (   $id = null)

Member Function Documentation

static getClassDir ( )
static

Returns the classFolder

Returns
String
getLabel ( )

String representation for representation in UI

Returns
String
static getLabelSort (   $subclass)
static

Default implementation - to be overridden by subclasses that override getLabel()

Parameters
string$itemTypeitemType for the sort (may be the sort will be for a subclass)
Returns
PntSqlSort that specifies the sql for sorting the instance records by label
static getTableName ( )
static
Returns
String the name of the database table the instances are stored in - override for each subclass
initPropertyDescriptors ( )

The documentation for this class was generated from the following file: