fator_vencimento

The WooCommerce Boleto fator vencimento function.

Description

fator_vencimento( $data ); 

Parameters (1)

0. $data
The data.

Usage

  1. if ( !function_exists( 'fator_vencimento' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-boleto/includes/banks/bancoob/functions.php'; 
  3.  
  4. // The data. 
  5. $data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = fator_vencimento($data); 
  9.  

Defined (12)

The function is defined in the following location(s).

/includes/banks/bancoob/functions.php  
  1. function fator_vencimento($data) { 
  2. $data = explode("/", $data); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return(abs((_dateToDays("1997", "10", "07")) - (_dateToDays($ano, $mes, $dia)))); 
/includes/banks/bb/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/bradesco/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/cef/functions.php  
  1. function fator_vencimento( $data ) { 
  2. if ( $data != "" ) { 
  3. $data = explode( "/", $data ); 
  4. $ano = $data[2]; 
  5. $mes = $data[1]; 
  6. $dia = $data[0]; 
  7. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
  8. } else { 
  9. return "0000"; 
/includes/banks/cef_sigcb/functions.php  
  1. function fator_vencimento( $data ) { 
  2. if ( $data != "" ) { 
  3. $data = explode( "/", $data ); 
  4. $ano = $data[2]; 
  5. $mes = $data[1]; 
  6. $dia = $data[0]; 
  7. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
  8. } else { 
  9. return "0000"; 
/includes/banks/cef_sinco/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/hsbc/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/itau/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/nossacaixa/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/real/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/santander/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) ); 
/includes/banks/unibanco/functions.php  
  1. function fator_vencimento( $data ) { 
  2. $data = explode( "/", $data ); 
  3. $ano = $data[2]; 
  4. $mes = $data[1]; 
  5. $dia = $data[0]; 
  6. return abs( ( _dateToDays( "1997", "10", "07" ) ) - ( _dateToDays( $ano, $mes, $dia ) ) );