Public Member Functions | |
getPadLength () | |
getPadChar () | |
format ($id) | |
frontendFormat ($id) |
Properties:
Definition at line 37 of file Abstract.php.
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 | ) |
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 }