|
Country |
Employee |
Gender |
Hours |
HoursCategory |
IndexPage |
MenuPart |
|
initPropertyDescriptors |
getClassDir |
getEditInfo |
getLabel |
getLabelSort |
getNHours |
getName |
getTableName |
getUiColumnPaths |
getUiFieldPaths |
getUiReportPaths |
|
function () {
parent::initPropertyDescriptors(); //allways first in this method !!!
$propDesc = $this->('firstName', 'string',false,null,null,0,20);
$propDesc->('first name');
$propDesc = $this->('lastName', 'string',false,null,null,0,80);
$propDesc->('last name');
$this->('func'.'tion', 'string',false,null,null,0,40); //name splitted becuase of hcodeBrowsers limitation
$this->('genderId', 'string',false,1,null,1,1); //a gender must be set, so minLength = 1 and minLength = 1
$this->('gender', 'Gender', false);
$this->('birthDate', 'date',false,null,null,0,20);
$this->('address', 'string',false,null,null,0,80);
$this->('zipcode', 'string',false,null,null,0,10);
$this->('city', 'string',false,null,null,0,40);
$this->('countryId', 'number',false,1,null,1,'3,0'); // a country must be set
$this->('country', 'Country',false);
$this->('email', 'email',false,null,null,0,80);
$this->('name', 'string');
$propDesc = $this->('nHours', 'number',true,0.1,24,0,'5,2');
$propDesc->('hours');
$prop = $this->('hours', 'Hours');
$prop->('v'); //verify: user must verify the recursive deletion of the property values
//$this->($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/ .
|
|