| Server IP : 14.225.216.240 / Your IP : 216.73.216.26 Web Server : nginx/1.20.1 System : Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64 User : taidh ( 1001) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/pts/app/Module/Crm/Controller/ |
Upload File : |
<?php
// phpcs:ignore
namespace App\Module\Crm\Controller;
use App\Module\Crm\Model\Optional\PriorityCode;
use App\Module\Crm\Model\System\Form as SystemForm;
use App\PTS\PTSController;
use Lang;
/**
* Auth module
*
* @category Class
* @package App\Module\Crm\Controller
* @author Phung, Truong K <truongkimphung1982@gmail.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License
* @link https://pts-digital.com/ PTS Digital Technology Co.,Ltd
*/
class BaseController extends PTSController
{
protected static $ns = 'crm';
protected static $fn;
protected static $priorityCodes;
protected static $systemForms;
/**
* Implement CRM Controller
*
* @return void
*/
public function __construct()
{
parent::__construct();
self::$ns = config('domain.crm.ns', 'crm');
self::$fn = self::$ns . '::';
self::$passwordMin = config('constant.password.min', 2);
self::$passwordMax = config('constant.password.max', 64);
$this->loadConfigurationNS(self::$ns);
$this->ptsAuth();
$this->ptsApplication();
view()->share('passwordMin', self::$passwordMin);
view()->share('passwordMax', self::$passwordMax);
view()->share('ns', self::$ns);
view()->share('fn', self::$fn);
self::$priorityCodes = PriorityCode::getInstance()->getPriorityCodesByActive();
view()->share('priorityCodes', self::$priorityCodes);
self::$systemForms = SystemForm::getInstance()->getFormsByActive();
view()->share('systemForms', self::$systemForms);
}
}