function populateClientField(&$field) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $field->strUserTableName = 'Client'; $field->enumParentTable = CENUM_CONTEXT_CLIENT; crptFieldPropsClient($field->strFieldName, $field->enumType, $field->strUserFN); }
function crptFieldPropsParentTable($lTableID, $strFN, &$strTableName, &$enumFType, &$strUserFN, &$enumAttachType) { //--------------------------------------------------------------------- // If a field is from a parent table (client, gifts, people, etc), // the field properties must be manually set. //--------------------------------------------------------------------- switch ($lTableID) { case CL_STID_CLIENT: $strTableName = 'Client Table'; $enumAttachType = null; crptFieldPropsClient($strFN, $enumFType, $strUserFN); break; default: screamForHelp($lTableID . ': invalid table ID<br>error on line <b> -- ' . __LINE__ . ' --</b>,<br>file ' . __FILE__ . ',<br>function ' . __FUNCTION__); break; } }