Exemplo n.º 1
0
	/**
	 * Gets value of field $fieldId from $cbUser record
	 *
	 * @param  CBuser  $cbUser
	 * @param  int     $fieldId
	 * @return mixed
	 */
	private static function _getFieldValue( $cbUser, $fieldId ) {
		$user			=	$cbUser->getUserData();
		if ( $user && isset( $user->id ) ) {
			return cbpaidUserExtension::getInstance( $user->id )->getFieldValue( $fieldId, true );
		} else {
			return null;
		}
	}