MetaSubscription::__construct PHP Method

__construct() public method

public __construct ( $p_subscriptionId = null )
    public function __construct($p_subscriptionId = null)
    {
        $this->m_dbObject = new Subscription($p_subscriptionId);
        if (!$this->m_dbObject->exists()) {
            $this->m_dbObject = new Subscription();
        }
        $this->m_properties['identifier'] = 'Id';
        $this->m_properties['currency'] = 'Currency';
        $this->m_customProperties['type'] = 'getType';
        $this->m_customProperties['start_date'] = 'getStartDate';
        $this->m_customProperties['expiration_date'] = 'getExpirationDate';
        $this->m_customProperties['is_active'] = 'isActive';
        $this->m_customProperties['is_valid'] = 'isValid';
        $this->m_customProperties['publication'] = 'getPublication';
        $this->m_customProperties['defined'] = 'defined';
    }