-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initial translation in yaf/yaf_controller_abstract
- Loading branch information
1 parent
8dbadf5
commit 71a73f3
Showing
16 changed files
with
1,067 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: ecaa2146429a7f88de40dfce14718afc896b74c5 Maintainer: leonardolara Status: ready --> | ||
|
||
<refentry xml:id="yaf-controller-abstract.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>Yaf_Controller_Abstract::__construct</refname> | ||
<refpurpose>Construtor de Yaf_Controller_Abstract</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<constructorsynopsis> | ||
<modifier>final</modifier> <modifier>private</modifier> <methodname>Yaf_Controller_Abstract::__construct</methodname> | ||
<void /> | ||
</constructorsynopsis> | ||
<para> | ||
<methodname>Yaf_Controller_Abstract::__construct</methodname> é final, | ||
que significa que não pode ser substituído. | ||
Consulte também | ||
<methodname>Yaf_Controller_Abstract::init</methodname>. | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
&no.function.parameters; | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
|
||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><methodname>Yaf_Controller_Abstract::init</methodname></member> | ||
</simplelist> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 94f2f851f015535e58fd84bc2accac402f21a48e Maintainer: leonardolara Status: ready --> | ||
|
||
<refentry xml:id="yaf-controller-abstract.display" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>Yaf_Controller_Abstract::display</refname> | ||
<refpurpose>display</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<modifier>protected</modifier> <type>bool</type><methodname>Yaf_Controller_Abstract::display</methodname> | ||
<methodparam><type>string</type><parameter>tpl</parameter></methodparam> | ||
<methodparam choice="opt"><type>array</type><parameter>parameters</parameter></methodparam> | ||
</methodsynopsis> | ||
<para> | ||
|
||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>tpl</parameter></term> | ||
<listitem> | ||
<para> | ||
|
||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>parameters</parameter></term> | ||
<listitem> | ||
<para> | ||
|
||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
|
||
</para> | ||
</refsect1> | ||
|
||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: c9389e4a0e96801fd14d91336ff3f12e45929a73 Maintainer: leonardolara Status: ready --> | ||
|
||
<refentry xml:id="yaf-controller-abstract.forward" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>Yaf_Controller_Abstract::forward</refname> | ||
<refpurpose>Encaminha para outra ação</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<modifier>public</modifier> <type>bool</type><methodname>Yaf_Controller_Abstract::forward</methodname> | ||
<methodparam><type>string</type><parameter>action</parameter></methodparam> | ||
<methodparam choice="opt"><type>array</type><parameter>paramters</parameter></methodparam> | ||
</methodsynopsis> | ||
<methodsynopsis> | ||
<modifier>public</modifier> <type>bool</type><methodname>Yaf_Controller_Abstract::forward</methodname> | ||
<methodparam><type>string</type><parameter>controller</parameter></methodparam> | ||
<methodparam><type>string</type><parameter>action</parameter></methodparam> | ||
<methodparam choice="opt"><type>array</type><parameter>paramters</parameter></methodparam> | ||
</methodsynopsis> | ||
<methodsynopsis> | ||
<modifier>public</modifier> <type>bool</type><methodname>Yaf_Controller_Abstract::forward</methodname> | ||
<methodparam><type>string</type><parameter>module</parameter></methodparam> | ||
<methodparam><type>string</type><parameter>controller</parameter></methodparam> | ||
<methodparam><type>string</type><parameter>action</parameter></methodparam> | ||
<methodparam choice="opt"><type>array</type><parameter>paramters</parameter></methodparam> | ||
</methodsynopsis> | ||
<para> | ||
Encaminha o processo de execução atual para outra ação. | ||
<note> | ||
<para> | ||
Este método não altera para a ação de destino imediatamente, isso | ||
acontece depois que o fluxo atual termina. | ||
</para> | ||
</note> | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>module</parameter></term> | ||
<listitem> | ||
<para> | ||
Nome do módulo de destino, se for NULL, o módulo padrão | ||
será usado. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>controller</parameter></term> | ||
<listitem> | ||
<para> | ||
Nome do controlador de destino. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>action</parameter></term> | ||
<listitem> | ||
<para> | ||
Nome da ação de destino. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
<varlistentry> | ||
<term><parameter>paramters</parameter></term> | ||
<listitem> | ||
<para> | ||
Argumentos da chamada. | ||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
&return.success; | ||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="examples"> | ||
&reftitle.examples; | ||
<example> | ||
<title>Exemplo de <function>Yaf_Controller_Abstract::forward</function></title> | ||
<programlisting role="php"> | ||
<![CDATA[ | ||
<?php | ||
class IndexController extends Yaf_Controller_Abstract | ||
{ | ||
public function indexAction(){ | ||
$logined = $_SESSION["login"]; | ||
if (!$logined) { | ||
$this->forward("login", array("from" => "Index")); // forward to login action | ||
return FALSE; // isto é importante, finaliza o fluxo atual | ||
// e solicita ao Yaf para não fazer auto-renderização | ||
} | ||
// other processes | ||
} | ||
public function loginAction() { | ||
echo "login, redirecionado da ação ", $this->_request->getParam("from"); | ||
} | ||
} | ||
?> | ||
]]> | ||
</programlisting> | ||
&example.outputs.similar; | ||
<screen> | ||
<![CDATA[ | ||
login, redirecionado da ação Index | ||
]]> | ||
</screen> | ||
</example> | ||
</refsect1> | ||
|
||
<refsect1 role="seealso"> | ||
&reftitle.seealso; | ||
<simplelist> | ||
<member><methodname>Yaf_Request_Abstrace::getParam</methodname></member> | ||
</simplelist> | ||
</refsect1> | ||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- EN-Revision: 94f2f851f015535e58fd84bc2accac402f21a48e Maintainer: leonardolara Status: ready --> | ||
|
||
<refentry xml:id="yaf-controller-abstract.getinvokearg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | ||
<refnamediv> | ||
<refname>Yaf_Controller_Abstract::getInvokeArg</refname> | ||
<refpurpose>getInvokeArg</refpurpose> | ||
</refnamediv> | ||
|
||
<refsect1 role="description"> | ||
&reftitle.description; | ||
<methodsynopsis> | ||
<modifier>public</modifier> <type>void</type><methodname>Yaf_Controller_Abstract::getInvokeArg</methodname> | ||
<methodparam><type>string</type><parameter>name</parameter></methodparam> | ||
</methodsynopsis> | ||
<para> | ||
|
||
</para> | ||
</refsect1> | ||
|
||
<refsect1 role="parameters"> | ||
&reftitle.parameters; | ||
<variablelist> | ||
<varlistentry> | ||
<term><parameter>name</parameter></term> | ||
<listitem> | ||
<para> | ||
|
||
</para> | ||
</listitem> | ||
</varlistentry> | ||
</variablelist> | ||
</refsect1> | ||
|
||
<refsect1 role="returnvalues"> | ||
&reftitle.returnvalues; | ||
<para> | ||
|
||
</para> | ||
</refsect1> | ||
|
||
|
||
</refentry> | ||
|
||
<!-- Keep this comment at the end of the file | ||
Local variables: | ||
mode: sgml | ||
sgml-omittag:t | ||
sgml-shorttag:t | ||
sgml-minimize-attributes:nil | ||
sgml-always-quote-attributes:t | ||
sgml-indent-step:1 | ||
sgml-indent-data:t | ||
indent-tabs-mode:nil | ||
sgml-parent-document:nil | ||
sgml-default-dtd-file:"~/.phpdoc/manual.ced" | ||
sgml-exposed-tags:nil | ||
sgml-local-catalogs:nil | ||
sgml-local-ecat-files:nil | ||
End: | ||
vim600: syn=xml fen fdm=syntax fdl=2 si | ||
vim: et tw=78 syn=sgml | ||
vi: ts=1 sw=1 | ||
--> |
Oops, something went wrong.