Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c1bdc1c4

Přidáno uživatelem Michal Kliment před více než 9 roky(ů)

Release 1.1.0

Zobrazit rozdíly:

application/libraries/Sms.php
* name Name
* description Another info about driver for user
* hostname Hostname of gateway [optional]
* help Translatable help hint string [optional]
* test_mode_enabled Indicator of test mode (driver does not send anything)
*
* @var array
......
'name' => 'Soundwin V100',
'class' => 'Soudvinv100',
'description' => 'GMS',
'help' => 'sms_driver_soudvinv100',
'test_mode_enabled' => FALSE,
),
'KLIKNIAVOLEJ' => array
......
'class' => 'Klikniavolej',
'description' => 'SMS',
'hostname' => 'kavremote.mobil.cz:80',
'help' => 'sms_driver_klikniavolej',
'test_mode_enabled' => TRUE,
),
);
......
* Gets name of driver
*
* @param integer $driver String index of driver or integer ID of driver.
* @param boolean $with_help Should contain name help as well [optional]
* @return string
*/
public static function get_driver_name($driver)
public static function get_driver_name($driver, $with_help = FALSE)
{
$selected_driver = self::_get_driver_index($driver);
......
{
$d = self::$DRIVERS[$selected_driver];
return $d['description'] . ' ' . __('Gateway') . ' ' . $d['name'];
$name = $d['description'] . ' ' . __('Gateway') . ' ' . $d['name'];
// help available?
if ($with_help && isset($d['help']))
{
$name .= ' ' . help::hint($d['help']);
}
return $name;
}
return __('Inactive');

Také k dispozici: Unified diff