array( 'type' => 'int', 'col' => 'id_recipient', 'form' => 'idRecipient', ), 'Numero' => array( 'type' => 'text', 'col' => 'numero_recipient', 'form' => 'numeroRecipient', 'label' => true, ), 'Perso1' => array( 'type' => 'text', 'col' => 'perso_1_recipient', 'form' => 'perso1Recipient', ), 'Perso2' => array( 'type' => 'text', 'col' => 'perso_2_recipient', 'form' => 'perso2Recipient', ), 'Perso3' => array( 'type' => 'text', 'col' => 'perso_3_recipient', 'form' => 'perso3Recipient', ), 'Perso4' => array( 'type' => 'text', 'col' => 'perso_4_recipient', 'form' => 'perso4Recipient', ), 'Perso5' => array( 'type' => 'text', 'col' => 'perso_5_recipient', 'form' => 'perso5Recipient', ), 'Perso6' => array( 'type' => 'text', 'col' => 'perso_6_recipient', 'form' => 'perso6Recipient', ), 'Perso7' => array( 'type' => 'text', 'col' => 'perso_7_recipient', 'form' => 'perso7Recipient', ), 'Perso8' => array( 'type' => 'text', 'col' => 'perso_8_recipient', 'form' => 'perso8Recipient', ), 'Perso9' => array( 'type' => 'text', 'col' => 'perso_9_recipient', 'form' => 'perso9Recipient', ), ); function getProperties() { return self::$properties; } static function getTemporaryFileName($Object) { return get_class($Object).'_'.$Object->Id; } function cleanNumber($n) { return preg_replace('`[^0-9]`Usmi', '', $n); } function hasValidNumber() { $this->Numero = $this->cleanNumber($this->Numero); return (strlen($this->Numero) > 8); } } ?>