Skip to content

Commit e571c79

Browse files
update revision EN yaf and security (#165)
* update revision EN yaf and security * Review * fix review * Reviewed --------- Co-authored-by: Marcos Porto Mariño <[email protected]>
1 parent c21a59f commit e571c79

38 files changed

+453
-331
lines changed

reference/yaf/yaf-action-abstract.xml

+22-23
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 8c094a0d91e2154833af5bd85c984fe6e80cdbbc Maintainer: seros Status: ready -->
4-
<!-- Reviewed: no -->
3+
<!-- EN-Revision: 4d17b7b4947e7819ff5036715dd706be87ae4def Maintainer: PhilDaiguille Status: ready -->
4+
<!-- Reviewed: yes Maintainer: Marqitos -->
55

66
<reference xml:id="class.yaf-action-abstract" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
7-
7+
88
<title>La clase Yaf_Action_Abstract</title>
99
<titleabbrev>Yaf_Action_Abstract</titleabbrev>
10-
10+
1111
<partintro>
12-
12+
1313
<!-- {{{ Yaf_Action_Abstract intro -->
1414
<section xml:id="yaf-action-abstract.intro">
1515
&reftitle.intro;
@@ -19,28 +19,27 @@
1919
también puede ser una clase <classname>Yaf_Action_Abstract</classname>.
2020
</para>
2121
<para>
22-
Ya que debería existir un punto de entrada el cual pueda ser llamado por Yaf (a partir de PHP 5.3,
23-
existe un nuevo método mágico, __invoke, pero Yaf no sólo funciona con PHP 5.3+,
24-
Yaf elige otro método mágico de ejecución), se debe implementar el método abstracto
22+
Dado que debe haber un punto de entrada que pueda ser llamado por Yaf,
23+
debe implementar el método abstracto
2524
<methodname>Yaf_Action_Abstract::execute</methodname> en la clase de
2625
acción personalizada.
2726
</para>
2827
</section>
2928
<!-- }}} -->
30-
29+
3130
<section xml:id="yaf-action-abstract.synopsis">
3231
&reftitle.classsynopsis;
33-
32+
3433
<!-- {{{ Synopsis -->
3534
<classsynopsis>
3635
<ooclass><classname>Yaf_Action_Abstract</classname></ooclass>
37-
36+
3837
<!-- {{{ Class synopsis -->
3938
<classsynopsisinfo>
4039
<ooclass>
4140
<classname>Yaf_Action_Abstract</classname>
4241
</ooclass>
43-
42+
4443
<ooclass>
4544
<modifier>extends</modifier>
4645
<classname>Yaf_Controller_Abstract</classname>
@@ -52,20 +51,20 @@
5251
<modifier>protected</modifier>
5352
<varname linkend="yaf-action-abstract.props.controller">_controller</varname>
5453
</fieldsynopsis>
55-
56-
54+
55+
5756
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
5857
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.yaf-action-abstract')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
59-
58+
6059
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
6160
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.yaf-controller-abstract')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
62-
61+
6362
</classsynopsis>
6463
<!-- }}} -->
65-
64+
6665
</section>
67-
68-
66+
67+
6968
<!-- {{{ Yaf_Action_Abstract properties -->
7069
<section xml:id="yaf-action-abstract.props">
7170
&reftitle.properties;
@@ -115,12 +114,12 @@
115114
</variablelist>
116115
</section>
117116
<!-- }}} -->
118-
119-
117+
118+
120119
</partintro>
121-
120+
122121
&reference.yaf.entities.yaf-action-abstract;
123-
122+
124123
</reference>
125124

126125
<!-- Keep this comment at the end of the file

reference/yaf/yaf-loader.xml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: ecaa2146429a7f88de40dfce14718afc896b74c5 Maintainer: seros Status: ready -->
4-
<!-- Reviewed: no Maintainer: andresdzphp -->
3+
<!-- EN-Revision: 7541512acf899391b68c3b6bae66a4fcc65e6c4e Maintainer: PhilDaiguille Status: ready -->
4+
<!-- Reviewed: yes Maintainer: Marqitos -->
55

66
<reference xml:id="class.yaf-loader" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
77

@@ -80,6 +80,7 @@ class Bootstrap extends Yaf_Bootstrap_Abstract{
8080
public function _initLoader($dispatcher) {
8181
Yaf_Loader::getInstance()->registerLocalNameSpace(array("Foo", "Bar"));
8282
}
83+
}
8384
?>
8485
]]>
8586
</programlisting>

reference/yaf/yaf_application/bootstrap.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 73fae4ee51b644b72028e610abefefced57c18ad Maintainer: seros Status: ready -->
3-
<!-- Reviewed: no -->
2+
<!-- EN-Revision: 4a211b7c8fb2b4410851d06c6f90f751d1f670d0 Maintainer: PhilDaiguille Status: ready -->
3+
<!-- Reviewed: yes Maintainer: Marqitos -->
44

55
<refentry xml:id="yaf-application.bootstrap" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -46,7 +46,7 @@
4646
<refsect1 role="examples">
4747
&reftitle.examples;
4848
<example>
49-
<title>Un ejemplo de <function>A Bootstrap</function></title>
49+
<title>Un ejemplo de Bootstrap</title>
5050
<programlisting role="php">
5151
<![CDATA[
5252
<?php

reference/yaf/yaf_application/construct.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 8bf3b3f0732d2b5c635f950e04e27a44b36f0cb0 Maintainer: seros Status: ready -->
3-
<!-- Reviewed: no -->
2+
<!-- EN-Revision: 7541512acf899391b68c3b6bae66a4fcc65e6c4e Maintainer: PhilDaiguille Status: ready -->
3+
<!-- Reviewed: yes Maintainer: Marqitos -->
44

55
<refentry xml:id="yaf-application.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -106,7 +106,7 @@ ap.modules=Index
106106
<![CDATA[
107107
<?php
108108
defined('APPLICATION_PATH') // APPLICATION_PATH será usada en el archivo de configuración ini
109-
|| define('APPLICATION_PATH', __DIR__));
109+
|| define('APPLICATION_PATH', __DIR__);
110110
111111
$application = new Yaf_Application(APPLICATION_PATH.'/conf/application.ini');
112112
$application->bootstrap()->run();

reference/yaf/yaf_config_ini/isset.xml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: seros Status: ready -->
4-
<!-- Reviewed: no Maintainer: andresdzphp -->
3+
<!-- EN-Revision: 2ba031cea18ed772310819005eeb1557c6a8ec75 Maintainer: PhilDaiguille Status: ready -->
4+
<!-- Reviewed: yes Maintainer: Marqitos -->
55

66
<refentry xml:id="yaf-config-ini.isset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
77
<refnamediv>
88
<refname>Yaf_Config_Ini::__isset</refname>
99
<refpurpose>Determinar si existe una clave</refpurpose>
1010
</refnamediv>
11-
11+
1212
<refsect1 role="description">
1313
&reftitle.description;
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>void</type><methodname>Yaf_Config_Ini::__isset</methodname>
1616
<methodparam><type>string</type><parameter>name</parameter></methodparam>
1717
</methodsynopsis>
1818
<para>
19-
19+
2020
</para>
21-
21+
2222
&warn.undocumented.func;
23-
23+
2424
</refsect1>
25-
25+
2626
<refsect1 role="parameters">
2727
&reftitle.parameters;
2828
<variablelist>
2929
<varlistentry>
3030
<term><parameter>name</parameter></term>
3131
<listitem>
3232
<para>
33-
33+
3434
</para>
3535
</listitem>
3636
</varlistentry>
3737
</variablelist>
3838
</refsect1>
39-
39+
4040
<refsect1 role="returnvalues">
4141
&reftitle.returnvalues;
4242
<para>
43-
43+
4444
</para>
4545
</refsect1>
46-
47-
46+
47+
4848
</refentry>
4949

5050
<!-- Keep this comment at the end of the file

reference/yaf/yaf_dispatcher/setview.xml

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 30f488ae241fa5c58a735d0e4c1b913dbc4bc73e Maintainer: seros Status: ready -->
4-
<!-- Reviewed: no -->
3+
<!-- EN-Revision: 4a211b7c8fb2b4410851d06c6f90f751d1f670d0 Maintainer: PhilDaiguille Status: ready -->
4+
<!-- Reviewed: yes Maintainer: Marqitos -->
55

66
<refentry xml:id="yaf-dispatcher.setview" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
77
<refnamediv>
88
<refname>Yaf_Dispatcher::setView</refname>
99
<refpurpose>Establecer un motor de vistas personalizado</refpurpose>
1010
</refnamediv>
11-
11+
1212
<refsect1 role="description">
1313
&reftitle.description;
1414
<methodsynopsis>
1515
<modifier>public</modifier> <type>Yaf_Dispatcher</type><methodname>Yaf_Dispatcher::setView</methodname>
1616
<methodparam><type>Yaf_View_Interface</type><parameter>view</parameter></methodparam>
1717
</methodsynopsis>
1818
<para>
19-
Este método proporciona una solución para aquellos que quieran utilizar un motor de vistas
20-
personalizado en lugar de la clase <classname>Yaf_View_Simple</classname>
19+
Este método ofrece una solución si desea utilizar una vista personalizada
20+
personalizado en lugar de <classname>Yaf_View_Simple</classname>.
2121
</para>
22-
22+
2323
</refsect1>
24-
24+
2525
<refsect1 role="parameters">
2626
&reftitle.parameters;
2727
<variablelist>
2828
<varlistentry>
2929
<term><parameter>view</parameter></term>
3030
<listitem>
3131
<para>
32-
Una instancia de la clase Yaf_View_Interface
32+
Una instancia de <classname>Yaf_View_Interface</classname>
3333
</para>
3434
</listitem>
3535
</varlistentry>
3636
</variablelist>
3737
</refsect1>
38-
38+
3939
<refsect1 role="returnvalues">
4040
&reftitle.returnvalues;
4141
<para>
42-
42+
4343
</para>
4444
</refsect1>
45-
45+
4646
<refsect1 role="examples">
4747
&reftitle.examples;
4848
<example>
49-
<title>Ejemplo de <function>un motor de Vistas personalizado</function></title>
49+
<title>Ejemplo de un motor de Vistas personalizado</title>
5050
<programlisting role="php">
5151
<![CDATA[
5252
<?php
@@ -59,7 +59,7 @@ class Smarty_Adapter implements Yaf_View_Interface
5959
* @var Smarty
6060
*/
6161
public $_smarty;
62-
62+
6363
/**
6464
* Constructor
6565
*
@@ -69,16 +69,16 @@ class Smarty_Adapter implements Yaf_View_Interface
6969
*/
7070
public function __construct($tmplPath = null, $extraParams = array()) {
7171
$this->_smarty = new Smarty;
72-
72+
7373
if (null !== $tmplPath) {
7474
$this->setScriptPath($tmplPath);
7575
}
76-
76+
7777
foreach ($extraParams as $clave => $valor) {
7878
$this->_smarty->$clave = $valor;
7979
}
8080
}
81-
81+
8282
/**
8383
* Establecer la ruta a las plantillas
8484
*
@@ -91,10 +91,10 @@ class Smarty_Adapter implements Yaf_View_Interface
9191
$this->_smarty->template_dir = $ruta;
9292
return;
9393
}
94-
94+
9595
throw new Exception('La ruta proporcionada no es válida');
9696
}
97-
97+
9898
/**
9999
* Asignar una variable a la plantilla
100100
*
@@ -106,7 +106,7 @@ class Smarty_Adapter implements Yaf_View_Interface
106106
{
107107
$this->_smarty->assign($clave, $valor);
108108
}
109-
109+
110110
/**
111111
* Permite que funcionen las pruebas con empty() y isset()
112112
*
@@ -117,7 +117,7 @@ class Smarty_Adapter implements Yaf_View_Interface
117117
{
118118
return (null !== $this->_smarty->get_template_vars($clave));
119119
}
120-
120+
121121
/**
122122
* Permite que funcione unset() con las porpiedades de los objetos
123123
*
@@ -128,7 +128,7 @@ class Smarty_Adapter implements Yaf_View_Interface
128128
{
129129
$this->_smarty->clear_assign($clave);
130130
}
131-
131+
132132
/**
133133
* Asignar variables a la plantilla
134134
*
@@ -147,10 +147,10 @@ class Smarty_Adapter implements Yaf_View_Interface
147147
$this->_smarty->assign($spec);
148148
return;
149149
}
150-
150+
151151
$this->_smarty->assign($spec, $valor);
152152
}
153-
153+
154154
/**
155155
* Limpiar todas las variables asignadas
156156
*
@@ -163,7 +163,7 @@ class Smarty_Adapter implements Yaf_View_Interface
163163
public function clearVars() {
164164
$this->_smarty->clear_all_assign();
165165
}
166-
166+
167167
/**
168168
* Procesa una plantilla y devuelve la salida.
169169
*
@@ -221,15 +221,15 @@ class Bootstrap extends Yaf_Bootstrap_Abstract {
221221
</programlisting>
222222
</example>
223223
</refsect1>
224-
224+
225225
<refsect1 role="seealso">
226226
&reftitle.seealso;
227227
<simplelist>
228228
<member><classname>Yaf_View_Interface</classname></member>
229229
<member><classname>Yaf_View_Simple</classname></member>
230230
</simplelist>
231231
</refsect1>
232-
232+
233233
</refentry>
234234

235235
<!-- Keep this comment at the end of the file

0 commit comments

Comments
 (0)