Quick search:

Employee
Hours
IndexPage
MenuPart
initPropertyDescriptors
getClassDir
getEditInfo
getLabel
getLabelSort
getNHours
getName
getTableName


	function initPropertyDescriptors() {
		parent::initPropertyDescriptors(); //allways first in this method !!!

		$this->addFieldProp('firstName', 'string',false,null,null,0,20);
		$this->addFieldProp('lastName', 'string',false,null,null,0,80);
		$this->addFieldProp('func'.'tion', 'string',false,null,null,0,40); //name splitted becuase of hcodeBrowsers limitation
		$this->addFieldProp('birthDate', 'date',false,null,null,0,20);
		$this->addFieldProp('address', 'string',false,null,null,0,80);
		$this->addFieldProp('zipcode', 'string',false,null,null,0,10);
		$this->addFieldProp('city', 'string',false,null,null,0,40);
		$this->addFieldProp('email', 'email',false,null,null,0,80);

		$this->addDerivedProp('name', 'string');
		$this->addDerivedProp('nHours', 'number',true,0.1,24,0,'5,2');
		$prop = $this->addMultiValueProp('hours', 'Hours'); 
		$prop->setOnDelete('v'); //verify: user must verify the recursive deletion of the property values

		//$this->addFieldProp($name, $type, $readOnly=false, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null, $persistent=true) 
		//$this->addDerivedProp/addMultiValueProp($name, $type, $readOnly=true, $minValue=null, $maxValue=null, $minLength=0, $maxLength=null, $classDir=null) 
	}
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/ .