Mage_Eav_Model_Entity_Increment_Abstract Class Reference

Inheritance diagram for Mage_Eav_Model_Entity_Increment_Abstract:

Varien_Object Mage_Eav_Model_Entity_Increment_Interface Mage_Eav_Model_Entity_Increment_Alphanum Mage_Eav_Model_Entity_Increment_Numeric

List of all members.

Public Member Functions

 getPadLength ()
 getPadChar ()
 format ($id)
 frontendFormat ($id)


Detailed Description

Enter description here...

Properties:

Definition at line 37 of file Abstract.php.


Member Function Documentation

format ( id  ) 

Definition at line 59 of file Abstract.php.

00060     {
00061         $result = $this->getPrefix();
00062         $result.= str_pad((string)$id, $this->getPadLength(), $this->getPadChar(), STR_PAD_LEFT);
00063         return $result;
00064     }

frontendFormat ( id  ) 

Definition at line 66 of file Abstract.php.

00067     {
00068         $result = $id;
00069         return $result;
00070     }

getPadChar (  ) 

Definition at line 50 of file Abstract.php.

00051     {
00052         $padChar = $this->getData('pad_char');
00053         if (empty($padChar)) {
00054             $padChar = '0';
00055         }
00056         return $padChar;
00057     }

getPadLength (  ) 

Definition at line 41 of file Abstract.php.

00042     {
00043         $padLength = $this->getData('pad_length');
00044         if (empty($padLength)) {
00045             $padLength = 8;
00046         }
00047         return $padLength;
00048     }


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