Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions reference/datetime/functions/mktime.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 3a8c3e77df070a046c9d5b56b68926ca2d7e5ee3 Maintainer: HonestQiao Status: ready -->
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.mktime" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -237,11 +237,11 @@ print date('c', $nextyear) . "\n";
<para>
<example>
<title>下个月的最后一天</title>
<para>
<simpara>
任何给定月份的最后一天都可以被表示为下个月的第 "0"
天,而不是 -1 天。下面两个示例都会产生字符串
"The last day in Feb 2000 is: 29"。
</para>
"Last day in Feb 2000 is: 29"。
</simpara>
<programlisting role="php">
<![CDATA[
<?php
Expand Down
5 changes: 3 additions & 2 deletions reference/exif/functions/exif-read-data.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6a08181be1706dfebdb3ad6e45620bceb08019ba Maintainer: jhdxr Status: ready -->
<!-- EN-Revision: 330a38c4d45556b49e06ebe6d39e0e311534cd8c Maintainer: jhdxr Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="function.exif-read-data">
<refnamediv>
Expand Down Expand Up @@ -267,7 +267,7 @@ THUMBNAIL.Thumbnail.Height: 1
<programlisting role="php">
<![CDATA[
<?php
// Open a the file, this should be in binary mode
// Open the file, this should be in binary mode
$fp = fopen('/path/to/image.jpg', 'rb');

if (!$fp) {
Expand Down Expand Up @@ -335,6 +335,7 @@ EXIF Headers:
<simplelist>
<member><function>exif_thumbnail</function></member>
<member><function>getimagesize</function></member>
<member><xref linkend="wrappers"/></member>
</simplelist>
</refsect1>
</refentry>
Expand Down
5 changes: 3 additions & 2 deletions reference/memcached/memcached/fetch.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1d8068ecb070fdc360d750e0c1f3f15796e61ec0 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="memcached.fetch" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>Memcached::fetch</refname>
Expand Down Expand Up @@ -58,7 +59,7 @@ while ($result = $m->fetch()) {
array(3) {
["key"]=>
string(3) "int"
"value"]=>
["value"]=>
int(99)
["cas"]=>
float(2363)
Expand Down
4 changes: 2 additions & 2 deletions reference/strings/functions/utf8-decode.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9b1673cf114a1e10c4563ab9223cb56aed552b89 Maintainer: Gregory Status: ready -->
<!-- EN-Revision: 330a38c4d45556b49e06ebe6d39e0e311534cd8c Maintainer: Gregory Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.utf8-decode">
<refnamediv>
Expand Down Expand Up @@ -223,7 +223,7 @@ var_dump($iso8859_1_string);
&example.outputs;
<screen>
<![CDATA[
sring(1) "?"
string(1) "?"
]]>
</screen>
</informalexample>
Expand Down
5 changes: 3 additions & 2 deletions reference/yaf/yaf-config-ini.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: ecaa2146429a7f88de40dfce14718afc896b74c5 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<reference xml:id="class.yaf-config-ini" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

<title>Yaf_Config_Ini 类</title>
Expand Down Expand Up @@ -140,7 +141,7 @@ var_dump($config->get("database.params.username"));
<![CDATA[
string(15) "dev.example.com"
string(6) "dbname"
string(7) "devuser
string(7) "devuser"
]]>
</screen>
</example>
Expand Down
4 changes: 2 additions & 2 deletions reference/yaf/yaf_application/construct.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7541512acf899391b68c3b6bae66a4fcc65e6c4e Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 330a38c4d45556b49e06ebe6d39e0e311534cd8c Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="yaf-application.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -78,7 +78,7 @@ ap.modules=Index
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>envrion</parameter></term>
<term><parameter>environ</parameter></term>
<listitem>
<para>
Which section will be loaded as the final config
Expand Down
4 changes: 2 additions & 2 deletions reference/yaf/yaf_route_rewrite/construct.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: b37bddfde36975bf6bf06ce98867e62d489d49c5 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: 330a38c4d45556b49e06ebe6d39e0e311534cd8c Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<refentry xml:id="yaf-route-rewrite.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand Down Expand Up @@ -75,7 +75,7 @@
* Add a rewrite route to Yaf_Router route stack
*/
Yaf_Dispatcher::getInstance()->getRouter()->addRoute("name",
new Yaf_Route_rewrite(
new Yaf_Route_Rewrite(
"/product/:name/:id/*", //match request uri leading "/product"
array(
'controller' => "product", //route to product controller,
Expand Down
13 changes: 7 additions & 6 deletions reference/yar/examples.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 914b97130aed191518791045b93b6f858ef5a139 Maintainer: mowangjuanzi Status: ready -->
<!-- EN-Revision: df78bd1d232f2cd8df673accf5ba0e280695639b Maintainer: mowangjuanzi Status: ready -->
<!-- CREDITS: Luffy -->
<chapter xml:id="yar.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.examples;
<example>
Expand All @@ -15,8 +16,8 @@ class Operator {

/**
* Add two operands
* @param interge
* @return interge
* @param integer
* @return integer
*/
public function add($a, $b) {
return $this->_add($a, $b);
Expand All @@ -38,8 +39,8 @@ class Operator {

/**
* Protected methods will not be exposed
* @param interge
* @return interge
* @param integer
* @return integer
*/
protected function _add($a, $b) {
return $a + $b;
Expand Down Expand Up @@ -78,7 +79,7 @@ var_dump($client->add(1, 2));
var_dump($client->call("add", array(3, 2)));


/* __add can not be called */
/* _add cannot be called */
var_dump($client->_add(1, 2));
?>
]]>
Expand Down