<?php

/**
 * PluginCustomField
 * 
 * This class has been auto-generated by the Doctrine ORM Framework
 * 
 * @package    ##PACKAGE##
 * @subpackage ##SUBPACKAGE##
 * @author     ##NAME## <##EMAIL##>
 * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
 */
abstract class PluginCustomField extends BaseCustomField
{
    
    const FIELD_TYPE_STRING = 0;
    const FIELD_TYPE_SELECT = 1;
    const MAX_FIELD_NUM = 10;
    
    const SCREEN_PERSONAL_DETAILS   = 'personal';
    const SCREEN_CONTACT_DETAILS    = 'contact';
    const SCREEN_EMERGENCY_CONTACTS = 'emergency';
    const SCREEN_DEPENDENTS         = 'dependents';
    const SCREEN_IMMIGRATION        = 'immigration';
    const SCREEN_QUALIFICATIONS     = 'qualifications';
    const SCREEN_TAX_EXEMPTIONS     = 'tax';
    const SCREEN_SALARY             = 'salary';
    const SCREEN_JOB                = 'job';
    const SCREEN_REPORT_TO          = 'report-to';
    const SCREEN_MEMBERSHIP         = 'membership'; 

    public function getOptions() {
        
        $options = array();

        if (($this->type == self::FIELD_TYPE_SELECT) && !empty($this->extraData)) {
                $options = explode(',', $this->extraData);
        }

        for ($i=0; $i<count($options); $i++) {
                $options[$i] = trim($options[$i]);
        }

        sort($options);

        return $options;
            
    }    
    
    
    

}