Public Member Functions | |
getResource () | |
setResource ($resource) | |
getNumber ($value) | |
Protected Attributes | |
$_resource |
Definition at line 35 of file Abstract.php.
getNumber | ( | $ | value | ) |
Definition at line 69 of file Abstract.php.
00070 { 00071 if (!($separator = $this->getBatchParams('decimal_separator'))) { 00072 $separator = '.'; 00073 } 00074 00075 $allow = array('0',1,2,3,4,5,6,7,8,9,'-',$separator); 00076 00077 $number = ''; 00078 for ($i = 0; $i < strlen($value); $i ++) { 00079 if (in_array($value[$i], $allow)) { 00080 $number .= $value[$i]; 00081 } 00082 } 00083 00084 if ($separator != '.') { 00085 $number = str_replace($separator, '.', $number); 00086 } 00087 00088 return floatval($number); 00089 }
getResource | ( | ) |
Retrieve resource generic method
Reimplemented in Mage_Catalog_Model_Convert_Adapter_Catalog, Mage_Dataflow_Model_Convert_Adapter_Db_Table, Mage_Dataflow_Model_Convert_Adapter_Zend_Cache, and Mage_Dataflow_Model_Convert_Adapter_Zend_Db.
Definition at line 52 of file Abstract.php.
setResource | ( | $ | resource | ) |
Set resource for the adapter
object | $resource |
Definition at line 63 of file Abstract.php.
$_resource [protected] |
Definition at line 45 of file Abstract.php.