modules/Settings/SMSNotifier/models/Module.php
<?php
/* +***********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
* Contributor(s): YetiForce S.A.
* *********************************************************************************** */
class Settings_SMSNotifier_Module_Model extends Settings_Vtiger_Module_Model
{
/**
* @var string
*/
public $baseTable = 'a_#__smsnotifier_servers';
/**
* @var string
*/
public $baseIndex = 'id';
/**
* @var string[]
*/
public $nameFields = [];
/**
* @var string[]
*/
public $listFields = ['name' => 'FL_NAME', 'providertype' => 'FL_PROVIDER', 'isactive' => 'FL_STATUS'];
/**
* @var string
*/
public $name = 'SMSNotifier';
/**
* Function to get Create view url.
*
* @return string Url
*/
public function getCreateRecordUrl()
{
return 'index.php?module=' . $this->getName() . '&parent=' . $this->getParentName() . '&view=Create';
}
/**
* Function to get List view url.
*
* @return string Url
*/
public function getListViewUrl()
{
return 'index.php?module=' . $this->getName() . '&parent=' . $this->getParentName() . '&view=List';
}
}