array( 'type' => 'int', 'col' => 'id_sms', 'form' => 'idSms', ), 'Reference' => array( 'type' => 'text', 'col' => 'reference_sms', 'form' => 'referenceSms', 'label' => true, ), 'Contenu' => array( 'type' => 'text', 'col' => 'contenu_sms', 'form' => 'contenuSms', ), 'Creation' => array( 'type' => 'datetime', 'col' => 'creation_sms', 'datetype' => 'creation', 'order' => 'DESC', ), 'Depart' => array( 'type' => 'datetime', 'col' => 'depart_sms', 'form' => 'departSms', 'order' => 'DESC', ), 'Envoi' => array( 'type' => 'bool', 'col' => 'envoi_sms', 'default-value' => false, ), 'Differe' => array( 'type' => 'bool', 'col' => 'differe_sms', 'default-value' => false, ), 'Operation' => array( 'type' => 'object', 'col' => 'default', 'form' => 'default', 'class' => 'PGS_Operation', ), 'Recipients' => array( 'type' => 'ext-object', 'class' => 'PGS_Sms_Recipient', 'on-delete' => 'delete', ), ); function getProperties() { return self::$properties; } function parseBody() { if (strlen($this->Contenu)) { $body = 'BT'."\n"; $body .= $this->parseContenu()."\n"; $body .= 'NNNN'."\n"; return $body; } else { return false; } } } ?>