private function getParentId()
    {
        $posted = $this->appRequest->getPostValue();
        if (isset($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_PARENT_MLM_ID])) {
            $mlmId = $posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_PARENT_MLM_ID];
            $found = $this->daoDwnlCust->getByMlmId($mlmId);
            if ($found) {
                $result = $found->getCustomerRef();
            }
        } else {
            $result = null;
        }
        return $result;
    }
private function getParentId()
    {
        $posted = $this->appRequest->getPostValue();
        if (isset($posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_PARENT_MLM_ID])) {
            $mlmId = $posted['customer'][ABlock::TMPL_FLDGRP][ABlock::TMPL_FIELD_PARENT_MLM_ID];
            $found = $this->daoDwnlCust->getByMlmId($mlmId);
            if ($found) {
                $result = $found->getCustomerRef();
            }
        } else {
            $result = null;
        }
        return $result;
    }
private function getParentId ( ) { $ posted = $ this -> appRequest -> getPostValue ( ) ; if ( isset ( $ posted [ 'customer' ] [ ABlock :: TMPL_FLDGRP ] [ ABlock :: TMPL_FIELD_PARENT_MLM_ID ] ) ) { $ mlmId = $ posted [ 'customer' ] [ ABlock :: TMPL_FLDGRP ] [ ABlock :: TMPL_FIELD_PARENT_MLM_ID ] ; $ found = $ this -> daoDwnlCust -> getByMlmId ( $ mlmId ) ; if ( $ found ) { $ result = $ found -> getCustomerRef ( ) ; } } else { $ result = null ; } return $ result ; }
Extract customer's parent ID from posted data or set null to extract it in service later from referral code.

@return int|null
Extract customer s parent ID from posted data or set null to extract it in service later from referral code .