Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_umusic
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_umusic
Commits
8d1e2d75
Commit
8d1e2d75
authored
Aug 23, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se agrega obtencion de parametro configuracion
parent
7c0e8a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/Utilities/Utiles.php
src/Utilities/Utiles.php
+12
-0
No files found.
src/Utilities/Utiles.php
View file @
8d1e2d75
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment