<?php
/**
 * @property String Id
 * @property String ProgramName
 * @property String DefaultPrice
 * @property String DefaultCycle
 * @property String DefaultFrequency
 * @property String Sku
 * @property String ShortDescription
 * @property String BillingType
 * @property String Description
 * @property String HideInStore
 * @property String Status
 * @property String Taxable
 * @property String Family
 */
class Mpp_Infusionsoft_Generated_CProgram extends Mpp_Infusionsoft_Generated_Base{
    protected static $tableFields = array('Id', 'ProgramName', 'DefaultPrice', 'DefaultCycle', 'DefaultFrequency', 'Sku', 'ShortDescription', 'BillingType', 'Description', 'HideInStore', 'Status', 'Taxable', 'Family');


    public function __construct($id = null, $app = null){
    	parent::__construct('CProgram', $id, $app);
    }

    public function getFields(){
		return self::$tableFields;
	}

	public function addCustomField($name){
		self::$tableFields[] = $name;
	}

    public function removeField($fieldName){
        $fieldIndex = array_search($fieldName, self::$tableFields);
        if($fieldIndex !== false){
            unset(self::$tableFields[$fieldIndex]);
            self::$tableFields = array_values(self::$tableFields);
        }
    }
}
