se agrega obtencion de parametro configuracion

parent 7c0e8a5a
......@@ -5,6 +5,7 @@ namespace App\Utilities;
use Monolog\Logger;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use AppBundle\Model\ParametroConfiguracionQuery;
/*
* To change this license header, choose License Headers in Project Properties.
......@@ -29,6 +30,17 @@ class Utiles {
$log->pushHandler($handler);
return $log;
}
public static function getParametroConfiguracion($nombre) {
$str_valor = '';
$parametro = ParametroConfiguracionQuery::create()->findOneByPcoNombre($nombre);
if ($parametro)
$str_valor = $parametro->getPcoValor();
return $str_valor;
}
public static function isMsisdn($msisdn) {
if (strlen($msisdn) != 9 || !is_numeric($msisdn)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment