Mage_Eav_Model_Entity_Increment_Numeric Class Reference

Inheritance diagram for Mage_Eav_Model_Entity_Increment_Numeric:

Mage_Eav_Model_Entity_Increment_Abstract Varien_Object Mage_Eav_Model_Entity_Increment_Interface

List of all members.

Public Member Functions

 getNextId ()


Detailed Description

Enter description here...

Properties:

Definition at line 37 of file Numeric.php.


Member Function Documentation

getNextId (  ) 

Implements Mage_Eav_Model_Entity_Increment_Interface.

Definition at line 40 of file Numeric.php.

00041     {
00042         $last = $this->getLastId();
00043         
00044         if (strpos($last, $this->getPrefix())===0) {
00045             $last = (int)substr($last, strlen($this->getPrefix()));
00046         } else {
00047             $last = (int)$last;
00048         }
00049         
00050         $next = $last+1;
00051         
00052         return $this->format($next);
00053     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:24:11 2009 for Magento by  doxygen 1.5.8