Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smsManager
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
smsManager
Commits
e3b72a8e
Commit
e3b72a8e
authored
Jul 03, 2019
by
Ana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agregar modelo
parent
b21e2c82
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2224 additions
and
2 deletions
+2224
-2
app/propel/generated-schemas/default_reversed_schema.xml
app/propel/generated-schemas/default_reversed_schema.xml
+9
-0
ping
ping
+0
-0
src/AppBundle/Model/ParametroConfiguracion.php
src/AppBundle/Model/ParametroConfiguracion.php
+9
-0
src/AppBundle/Model/ParametroConfiguracionPeer.php
src/AppBundle/Model/ParametroConfiguracionPeer.php
+9
-0
src/AppBundle/Model/ParametroConfiguracionQuery.php
src/AppBundle/Model/ParametroConfiguracionQuery.php
+9
-0
src/AppBundle/Model/map/ParametroConfiguracionTableMap.php
src/AppBundle/Model/map/ParametroConfiguracionTableMap.php
+59
-0
src/AppBundle/Model/om/BaseParametroConfiguracion.php
src/AppBundle/Model/om/BaseParametroConfiguracion.php
+944
-0
src/AppBundle/Model/om/BaseParametroConfiguracionPeer.php
src/AppBundle/Model/om/BaseParametroConfiguracionPeer.php
+776
-0
src/AppBundle/Model/om/BaseParametroConfiguracionQuery.php
src/AppBundle/Model/om/BaseParametroConfiguracionQuery.php
+382
-0
src/AppBundle/Resources/config/default_reversed_schema.xml
src/AppBundle/Resources/config/default_reversed_schema.xml
+10
-1
src/BackendBundle/Controller/EnvioSmsController.php
src/BackendBundle/Controller/EnvioSmsController.php
+17
-1
No files found.
app/propel/generated-schemas/default_reversed_schema.xml
View file @
e3b72a8e
...
...
@@ -10,4 +10,13 @@
<parameter
name=
"Engine"
value=
"MyISAM"
/>
</vendor>
</table>
<table
name=
"parametro_configuracion"
phpName=
"ParametroConfiguracion"
idMethod=
"native"
>
<column
name=
"pco_id"
phpName=
"PcoId"
type=
"INTEGER"
primaryKey=
"true"
autoIncrement=
"true"
required=
"true"
/>
<column
name=
"pco_nombre"
phpName=
"PcoNombre"
type=
"VARCHAR"
size=
"100"
required=
"false"
/>
<column
name=
"pco_valor"
phpName=
"PcoValor"
type=
"VARCHAR"
size=
"1000"
required=
"false"
/>
<column
name=
"pco_descripcion"
phpName=
"PcoDescripcion"
type=
"VARCHAR"
size=
"1000"
required=
"false"
/>
<vendor
type=
"mysql"
>
<parameter
name=
"Engine"
value=
"InnoDB"
/>
</vendor>
</table>
</database>
ping
0 → 100644
View file @
e3b72a8e
src/AppBundle/Model/ParametroConfiguracion.php
0 → 100644
View file @
e3b72a8e
<?php
namespace
AppBundle\Model
;
use
AppBundle\Model\om\BaseParametroConfiguracion
;
class
ParametroConfiguracion
extends
BaseParametroConfiguracion
{
}
src/AppBundle/Model/ParametroConfiguracionPeer.php
0 → 100644
View file @
e3b72a8e
<?php
namespace
AppBundle\Model
;
use
AppBundle\Model\om\BaseParametroConfiguracionPeer
;
class
ParametroConfiguracionPeer
extends
BaseParametroConfiguracionPeer
{
}
src/AppBundle/Model/ParametroConfiguracionQuery.php
0 → 100644
View file @
e3b72a8e
<?php
namespace
AppBundle\Model
;
use
AppBundle\Model\om\BaseParametroConfiguracionQuery
;
class
ParametroConfiguracionQuery
extends
BaseParametroConfiguracionQuery
{
}
src/AppBundle/Model/map/ParametroConfiguracionTableMap.php
0 → 100644
View file @
e3b72a8e
<?php
namespace
AppBundle\Model\map
;
use
\RelationMap
;
use
\TableMap
;
/**
* This class defines the structure of the 'parametro_configuracion' table.
*
*
*
* This map class is used by Propel to do runtime db structure discovery.
* For example, the createSelectSql() method checks the type of a given column used in an
* ORDER BY clause to know whether it needs to apply SQL to make the ORDER BY case-insensitive
* (i.e. if it's a text column type).
*
* @package propel.generator.src.AppBundle.Model.map
*/
class
ParametroConfiguracionTableMap
extends
TableMap
{
/**
* The (dot-path) name of this class
*/
const
CLASS_NAME
=
'src.AppBundle.Model.map.ParametroConfiguracionTableMap'
;
/**
* Initialize the table attributes, columns and validators
* Relations are not initialized by this method since they are lazy loaded
*
* @return void
* @throws PropelException
*/
public
function
initialize
()
{
// attributes
$this
->
setName
(
'parametro_configuracion'
);
$this
->
setPhpName
(
'ParametroConfiguracion'
);
$this
->
setClassname
(
'AppBundle\\Model\\ParametroConfiguracion'
);
$this
->
setPackage
(
'src.AppBundle.Model'
);
$this
->
setUseIdGenerator
(
true
);
// columns
$this
->
addPrimaryKey
(
'pco_id'
,
'PcoId'
,
'INTEGER'
,
true
,
null
,
null
);
$this
->
addColumn
(
'pco_nombre'
,
'PcoNombre'
,
'VARCHAR'
,
false
,
100
,
null
);
$this
->
addColumn
(
'pco_valor'
,
'PcoValor'
,
'VARCHAR'
,
false
,
1000
,
null
);
$this
->
addColumn
(
'pco_descripcion'
,
'PcoDescripcion'
,
'VARCHAR'
,
false
,
1000
,
null
);
// validators
}
// initialize()
/**
* Build the RelationMap objects for this table relationships
*/
public
function
buildRelations
()
{
}
// buildRelations()
}
// ParametroConfiguracionTableMap
src/AppBundle/Model/om/BaseParametroConfiguracion.php
0 → 100644
View file @
e3b72a8e
This diff is collapsed.
Click to expand it.
src/AppBundle/Model/om/BaseParametroConfiguracionPeer.php
0 → 100644
View file @
e3b72a8e
This diff is collapsed.
Click to expand it.
src/AppBundle/Model/om/BaseParametroConfiguracionQuery.php
0 → 100644
View file @
e3b72a8e
This diff is collapsed.
Click to expand it.
src/AppBundle/Resources/config/default_reversed_schema.xml
View file @
e3b72a8e
...
...
@@ -10,4 +10,13 @@
<parameter
name=
"Engine"
value=
"MyISAM"
/>
</vendor>
</table>
<table
name=
"parametro_configuracion"
phpName=
"ParametroConfiguracion"
idMethod=
"native"
>
<column
name=
"pco_id"
phpName=
"PcoId"
type=
"INTEGER"
primaryKey=
"true"
autoIncrement=
"true"
required=
"true"
/>
<column
name=
"pco_nombre"
phpName=
"PcoNombre"
type=
"VARCHAR"
size=
"100"
required=
"false"
/>
<column
name=
"pco_valor"
phpName=
"PcoValor"
type=
"VARCHAR"
size=
"1000"
required=
"false"
/>
<column
name=
"pco_descripcion"
phpName=
"PcoDescripcion"
type=
"VARCHAR"
size=
"1000"
required=
"false"
/>
<vendor
type=
"mysql"
>
<parameter
name=
"Engine"
value=
"InnoDB"
/>
</vendor>
</table>
</database>
\ No newline at end of file
src/BackendBundle/Controller/EnvioSmsController.php
View file @
e3b72a8e
...
...
@@ -19,6 +19,7 @@ use FOS\RestBundle\View\View;
use
Sensio\Bundle\FrameworkExtraBundle\Configuration\Method
;
class
EnvioSmsController
extends
FOSRestController
{
...
...
@@ -110,7 +111,7 @@ class EnvioSmsController extends FOSRestController
$post
[
'to'
]
=
array
(
$movil
);
$post
[
'text'
]
=
$mensaje
;
$post
[
'from'
]
=
$movil
;
$post
[
'dlr-url'
]
=
"http://localhost/apirestsms/notifica
.php?idenvio="
.
$campana
.
"&tel=%P&estado=%d"
;
//esta url debe ser cambiada
$post
[
'dlr-url'
]
=
"http://localhost/apirestsms/notifica
/"
.
$campana
.
"/%P/%d"
;
$user
=
$usuario
;
$password
=
$password
;
$ch
=
curl_init
();
...
...
@@ -253,4 +254,19 @@ $val=strVal($messageId);
}
}
/**
* @Route("/notifica/{idenvio}/{tel}/{estado}")
*/
public
function
notificaAction
(
$idenvio
,
$tel
,
$estado
){
$notifica
=
new
Notifica
();
$notifica
->
setCampana
(
$idenvio
);
$notifica
->
setTelefono
(
$tel
);
$notifica
->
setEstado
(
$estado
);
$notifica
->
save
();
}
}
\ No newline at end of file
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