Class: IdentifierHelper

Source Location: /CORE/system/classes/util/IdentifierHelper.php

Class IdentifierHelper

Class Overview

This class provides some helper methods for creating and fetching Identifier.

Located in /CORE/system/classes/util/IdentifierHelper.php [line 36]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: IdentifierHelper.php,v 1.4 2009/02/27 23:54:34 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
static int   createNextID()   Creates a fail safe new ID for the given name.
static void   getMaximumID()   Gets the Maximum URL from a Database Table.

[ Top ]
Methods
static method createNextID  [line 58]

  static int createNextID( string $name  )

Creates a fail safe new ID for the given name.

Do not rely on auto_increment values, but on this function.

Parameters:
string   $name:  the name of the id you want to fetch


[ Top ]
static method getMaximumID  [line 42]

  static void getMaximumID( int $table  )

Gets the Maximum URL from a Database Table.

Parameters:
int   $table:  the current maximum ID


[ Top ]