cvs: smarty /libs/plugins modifier.escape.php modifier.indent.php modifier.lower.php modifier.nl2br.php modifier.regex_replace.php
| From: | Greg Beaver | Date: | Sun, 20 Apr 2003 21:12:08 +0000 |
| Subject: | cvs: smarty /libs/plugins modifier.escape.php modifier.indent.php modifier.lower.php modifier.nl2br.php modifier.regex_replace.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-550@lists.php.net to get a copy of this message | ||
cellog Sun Apr 20 17:12:08 2003 EDT
Modified files:
/smarty/libs/plugins modifier.escape.php modifier.indent.php
modifier.lower.php modifier.nl2br.php
modifier.regex_replace.php
Log:
updated all doc comments to phpDocumentor format
Index: smarty/libs/plugins/modifier.escape.php
diff -u smarty/libs/plugins/modifier.escape.php:1.7 smarty/libs/plugins/modifier.escape.php:1.8
--- smarty/libs/plugins/modifier.escape.php:1.7 Mon Feb 17 16:13:32 2003
+++ smarty/libs/plugins/modifier.escape.php Sun Apr 20 17:12:08 2003
@@ -1,12 +1,22 @@
<?php
-
-/*
+/**
* Smarty plugin
- * ------------------------------------------------------------
- * Type: modifier
- * Name: escape
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty escape modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: escape<br>
* Purpose: Escape the string according to escapement type
- * ------------------------------------------------------------
+ * @link http://smarty.php.net/manual/en/language.modifier.escape.php
+ * escape (Smarty online manual)
+ * @param string
+ * @param html|htmlall|url|quotes|hex|hexentity|javascript
+ * @return string
*/
function smarty_modifier_escape($string, $esc_type = 'html')
{
Index: smarty/libs/plugins/modifier.indent.php
diff -u smarty/libs/plugins/modifier.indent.php:1.1 smarty/libs/plugins/modifier.indent.php:1.2
--- smarty/libs/plugins/modifier.indent.php:1.1 Fri Mar 15 02:08:17 2002
+++ smarty/libs/plugins/modifier.indent.php Sun Apr 20 17:12:08 2003
@@ -1,12 +1,23 @@
<?php
-
-/*
+/**
* Smarty plugin
- * -------------------------------------------------------------
- * Type: modifier
- * Name: indent
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty indent modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: indent<br>
* Purpose: indent lines of text
- * -------------------------------------------------------------
+ * @link http://smarty.php.net/manual/en/language.modifier.indent.php
+ * indent (Smarty online manual)
+ * @param string
+ * @param integer
+ * @param string
+ * @return string
*/
function smarty_modifier_indent($string,$chars=4,$char=" ")
{
Index: smarty/libs/plugins/modifier.lower.php
diff -u smarty/libs/plugins/modifier.lower.php:1.1 smarty/libs/plugins/modifier.lower.php:1.2
--- smarty/libs/plugins/modifier.lower.php:1.1 Thu Jan 31 15:49:40 2002
+++ smarty/libs/plugins/modifier.lower.php Sun Apr 20 17:12:08 2003
@@ -1,12 +1,21 @@
<?php
-
-/*
+/**
* Smarty plugin
- * -------------------------------------------------------------
- * Type: modifier
- * Name: lower
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty lower modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: lower<br>
* Purpose: convert string to lowercase
- * -------------------------------------------------------------
+ * @link http://smarty.php.net/manual/en/language.modifier.lower.php
+ * lower (Smarty online manual)
+ * @param string
+ * @return string
*/
function smarty_modifier_lower($string)
{
Index: smarty/libs/plugins/modifier.nl2br.php
diff -u smarty/libs/plugins/modifier.nl2br.php:1.1 smarty/libs/plugins/modifier.nl2br.php:1.2
--- smarty/libs/plugins/modifier.nl2br.php:1.1 Wed Feb 26 17:16:14 2003
+++ smarty/libs/plugins/modifier.nl2br.php Sun Apr 20 17:12:08 2003
@@ -1,19 +1,29 @@
<?php
+/**
+ * Smarty plugin
+ * @package Smarty
+ * @subpackage plugins
+ */
+
-/*
+/**
* Smarty plugin
- * -------------------------------------------------------------
- * Type: modifier
- * Name: nl2br
- * Version: 1.0
+ *
+ * Type: modifier<br>
+ * Name: nl2br<br>
* Date: Feb 26, 2003
- * Author: Monte Ohrt <monte@ispi.net>
- * Purpose: convert \r\n, \r or \n to <br />
- * Input: contents = contents to replace
- * preceed_test = if true, includes preceeding break tags
+ * Purpose: convert \r\n, \r or \n to <<br>>
+ * Input:<br>
+ * - contents = contents to replace
+ * - preceed_test = if true, includes preceeding break tags
* in replacement
* Example: {$text|nl2br}
- * -------------------------------------------------------------
+ * @link http://smarty.php.net/manual/en/language.modifier.nl2br.php
+ * nl2br (Smarty online manual)
+ * @version 1.0
+ * @author Monte Ohrt <monte@ispi.net>
+ * @param string
+ * @return string
*/
function smarty_modifier_nl2br($string)
{
Index: smarty/libs/plugins/modifier.regex_replace.php
diff -u smarty/libs/plugins/modifier.regex_replace.php:1.1
smarty/libs/plugins/modifier.regex_replace.php:1.2
--- smarty/libs/plugins/modifier.regex_replace.php:1.1 Thu Jan 31 15:49:40 2002
+++ smarty/libs/plugins/modifier.regex_replace.php Sun Apr 20 17:12:08 2003
@@ -1,12 +1,23 @@
<?php
-
-/*
+/**
* Smarty plugin
- * -------------------------------------------------------------
- * Type: modifier
- * Name: regex_replace
+ * @package Smarty
+ * @subpackage plugins
+ */
+
+
+/**
+ * Smarty regex_replace modifier plugin
+ *
+ * Type: modifier<br>
+ * Name: regex_replace<br>
* Purpose: regular epxression search/replace
- * -------------------------------------------------------------
+ * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
+ * regex_replace (Smarty online manual)
+ * @param string
+ * @param string|array
+ * @param string|array
+ * @return string
*/
function smarty_modifier_regex_replace($string, $search, $replace)
{