Quick search:

Activity
Country
Employee
EmployeeIndexPage
EmployeePropertyHoursPage
EmployeePropertyHoursPart
EmployeeSaveAction
Gender
GlobalFilterFormPart
Hours
HoursCategory
HoursCategoryEditDetailsPage
HoursSearchPage
IndexPage
MenuPart
PntSqlFilterGlobalAction
PntSqlFilterGlobalDialog
Project
ProjectPropertyHoursPage
initPropertyDescriptors
__construct
getClassDir
getDeleteErrorMessages
getGlobalDateFilter
getHours
getLabel
getLabelSort
getMessage
getTableName


	function initPropertyDescriptors() {
		// this activates polymorphic persistency and declares clsId to hold the actual class name
		// this must be done BEFORE any properties are added!
		$clsDes = $this->getClassDescriptor();
		$clsDes->setPolymorphismPropName('clsId');
		$clsDes->setPolyClassesAllowed( array('Project' => 1) );
		
		parent::initPropertyDescriptors();  //adds the 'inherited' properties

		$this->addFieldProp('clsId', 'string', false, null, null, 1, 60);
		$this->addFieldProp('name', 'string', false, null, null, 1, 60);
		$this->addFieldProp('description', 'string', false, null, null, 0, 32000);
		
		$this->addDerivedProp('message', 'string');
		
		$prop = $this->addMultiValueProp('hours', 'Hours');
		$prop->setTwinName('activity'); //must be explicitly set because with polymorphism the default will be wrong for subclasses
	}
Copyright (c) MetaClass, 2003-

This code is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Click here for a copy of the license or see http://www.gnu.org/licenses/ .