frontend/components/behaviors/ReferralBehavior.php
/**
     * Parses tracking number and returns info.
     *
     * Parses tracking number and returns info.
     * Info is returned as array:
     * [
     *   'uid',//Owner of referral link
     *   'lid',//Referral link id
     *   'unq'//Unique id
     * ]
     *
     * @param  string $trk
     * @return
     */
Parses tracking number and returns info.
Parses tracking number and returns info.

@param  string $trk
@return
Parses tracking number and returns info . Parses tracking number and returns info . @param string $trk @return
private function parseTrackingNum($trk)
    {
        $trk = $this->getTrackingNum();
        if (preg_match('/^uid(\d+)lid(\d+)unq(.+)$/', $trk, $matches)) {
            array_shift($matches);
            return $matches;
        }
        return false;
    }
private function parseTrackingNum ( $ trk ) { $ trk = $ this -> getTrackingNum ( ) ; if ( preg_match ( '/^uid(\d+)lid(\d+)unq(.+)$/' , $ trk , $ matches ) ) { array_shift ( $ matches ) ; return $ matches ; } return false ; }
Parses tracking number and returns info.
Parses tracking number and returns info .