Ajout helper pour affichage siren et siret

This commit is contained in:
Michael RICOIS 2011-04-20 09:17:09 +00:00
parent 660f21060a
commit 7f2404adb4
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<?php
class Zend_View_Helper_SirenTexte extends Zend_View_Helper_Abstract
{
public function SirenTexte($siren)
{
return substr($siren, 0, 3).' '.
substr($siren, 3, 3).' '.
substr($siren, 6, 3);
}
}

View File

@ -0,0 +1,11 @@
<?php
class Zend_View_Helper_SiretTexte extends Zend_View_Helper_Abstract
{
public function SiretTexte($siret)
{
return substr($siret, 0, 3).' '.
substr($siret, 3, 3).' '.
substr($siret, 6, 3).' '.
'<i>'.substr($siret, 9, 5).'</i>';
}
}