Quick search:

Country
Employee
Gender
Hours
HoursCategory
IndexPage
MenuPart
initPropertyDescriptors
getClassDir
getEditInfo
getLabel
getLabelSort
getNHours
getName
getTableName
getUiColumnPaths
getUiFieldPaths
getUiReportPaths


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

		$propDesc = $this->addFieldProp('firstName', 'string',false,null,null,0,20);
		$propDesc->setLabel('first name');
		$propDesc = $this->addFieldProp('lastName', 'string',false,null,null,0,80);
		$propDesc->setLabel('last name');
		
		$this->addFieldProp('func'.'tion', 'string',false,null,null,0,40); //name splitted becuase of hcodeBrowsers limitation
		$this->addFieldProp('genderId', 'string',false,1,null,1,1); //a gender must be set, so minLength = 1 and minLength = 1
		$this->addDerivedProp('gender', 'Gender', false);
		$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('countryId', 'number',false,1,null,1,'3,0'); // a country must be set
		$this->addDerivedProp('country', 'Country',false);
		$this->addFieldProp('email', 'email',false,null,null,0,80);

		$this->addDerivedProp('name', 'string');
		$propDesc = $this->addDerivedProp('nHours', 'number',true,0.1,24,0,'5,2');
		$propDesc->setLabel('hours');
		$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/ .