cvs: pear /Crypt Crypt_NumberID.php

From: Date: Fri, 03 Aug 2001 02:17:28 +0000
Subject: cvs: pear /Crypt Crypt_NumberID.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-408@lists.php.net to get a copy of this message
alexmerz Thu Aug 2 22:17:28 2001 EDT Modified files: /pear/Crypt Crypt_NumberID.php Log: fix PHPDoc Index: pear/Crypt/Crypt_NumberID.php diff -u pear/Crypt/Crypt_NumberID.php:1.2 pear/Crypt/Crypt_NumberID.php:1.3 --- pear/Crypt/Crypt_NumberID.php:1.2 Mon Jul 23 06:31:57 2001 +++ pear/Crypt/Crypt_NumberID.php Thu Aug 2 22:17:27 2001 @@ -16,31 +16,37 @@ // | Authors: Dave Mertens <dmertens@zyprexia.com> | // +----------------------------------------------------------------------+ // -// $Id: Crypt_NumberID.php,v 1.2 2001/07/23 10:31:57 zyprexia Exp $ +// $Id: Crypt_NumberID.php,v 1.3 2001/08/03 02:17:27 alexmerz Exp $ + +/** +* Creates a handy ID of a Number +* This is not a real encryption class, but it can be usefull. +* +* Especialy for eshops it's handy that the user gets another order nr than +* the normal used order ID. A regular customer can see if the store is successfull +* just by looking at the orderid's. +* +* This class created an order number that can be used as a referal for the customer. Intern +* you can still use the order ID. +* +* Ofcourse it's possible to make an number of any id. +* +* The numbers are unique as long ID is below 1000000. +* +* @access public +* @package Crypt +* @author Dave Mertens <dmertens@zyprexia.com> +* @version $Revision: 1.3 $ +*/ class Crypt_NumberID { /** - * - * This is not a real encryption class, but it can be usefull. - * - * Especialy for eshops it's handy that the user gets another order nr than - * the normal used order ID. A regular customer can see if the store is successfull - * just by looking at the orderid's. - * - * This class created an order number that can be used as a referal for the customer. Intern - * you can still use the order ID. - * - * Ofcourse it's possible to make an number of any id. - * - * The numbers are unique as long ID is below 1000000. - */ - - /** * translate an ID into a number * * @param long $ID - Identifier * @return string containing the number + * @access public */ function toNumber($ID) { @@ -61,6 +67,7 @@ * * @param string nr - number create by toNumber function * @return long ID - your original ID + * @access public */ function toId($nr) {

« previous php.pear.cvs (#408) next »