summaryrefslogtreecommitdiffstats
path: root/user_guide/helpers
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-21 21:44:22 +0200
committeradmin <devnull@localhost>2006-10-21 21:44:22 +0200
commite334c472fb4be44feec3a73402fc4a2b062cbfc0 (patch)
tree553f17d67e7ef652016ec85b2a576bb2210f0ff8 /user_guide/helpers
parentbd6bee75dd26ade1c8d9cfd104bb913065797c59 (diff)
Diffstat (limited to 'user_guide/helpers')
-rw-r--r--user_guide/helpers/array_helper.html4
-rw-r--r--user_guide/helpers/cookie_helper.html6
-rw-r--r--user_guide/helpers/date_helper.html12
-rw-r--r--user_guide/helpers/directory_helper.html4
-rw-r--r--user_guide/helpers/download_helper.html4
-rw-r--r--user_guide/helpers/file_helper.html2
-rw-r--r--user_guide/helpers/form_helper.html14
-rw-r--r--user_guide/helpers/html_helper.html2
-rw-r--r--user_guide/helpers/index.html6
-rw-r--r--user_guide/helpers/inflector_helper.html2
-rw-r--r--user_guide/helpers/security_helper.html4
-rw-r--r--user_guide/helpers/string_helper.html4
-rw-r--r--user_guide/helpers/text_helper.html2
-rw-r--r--user_guide/helpers/typography_helper.html8
-rw-r--r--user_guide/helpers/url_helper.html10
-rw-r--r--user_guide/helpers/xml_helper.html2
16 files changed, 43 insertions, 43 deletions
diff --git a/user_guide/helpers/array_helper.html b/user_guide/helpers/array_helper.html
index a6044be8f..854d0babe 100644
--- a/user_guide/helpers/array_helper.html
+++ b/user_guide/helpers/array_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -75,7 +75,7 @@ Array Helper
<h2>element()</h2>
-<p>Lets you fetch an item from an array. The function tests whether the array index is set and whether it has a value. If
+<p>Lets you fetch an item from an array. The function tests whether the array index is set and whether it has a value. If
a value exists it is returned. If a value does not exist it returns FALSE, or whatever you've specified as the default value via the third parameter. Example:</p>
<code>
diff --git a/user_guide/helpers/cookie_helper.html b/user_guide/helpers/cookie_helper.html
index 1e352fc11..ec27e5485 100644
--- a/user_guide/helpers/cookie_helper.html
+++ b/user_guide/helpers/cookie_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -99,7 +99,7 @@ set_cookie($cookie);
<p>Only the name and value are required.</p>
<p>The expiration is set in <strong>seconds</strong>, which will be added to the current time. Do not include the time, but rather only the
-number of seconds from <em>now</em> that you wish the cookie to be valid. If the expiration is set to
+number of seconds from <em>now</em> that you wish the cookie to be valid. If the expiration is set to
zero the cookie will only last as long as the browser is open.</p>
<p>To delete a cookie set it with the expiration blank.</p>
<p>For site-wide cookies regardless of how your site is requested, add your URL to the <strong>domain</strong> starting with a period, like this: .your-domain.com</p>
@@ -132,7 +132,7 @@ zero the cookie will only last as long as the browser is open.</p>
<code>delete_cookie("name");</code>
-<p>This function is otherwise identical to <dfn>set_cookie()</dfn>, except that it does not have the value and expiration parameters. You can submit an array
+<p>This function is otherwise identical to <dfn>set_cookie()</dfn>, except that it does not have the value and expiration parameters. You can submit an array
of values in the first parameter or you can set discreet parameters.</p>
<code>delete_cookie($name, $domain, $path, $prefix)</code>
diff --git a/user_guide/helpers/date_helper.html b/user_guide/helpers/date_helper.html
index f787176a7..727ce5206 100644
--- a/user_guide/helpers/date_helper.html
+++ b/user_guide/helpers/date_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -86,7 +86,7 @@ run a site that lets each user set their own timezone settings) there is no bene
<h2>mdate()</h2>
-<p>This function is identical to PHPs <a href="http://www.php.net/date">date()</a> function, except that it lets you
+<p>This function is identical to PHPs <a href="http://www.php.net/date">date()</a> function, except that it lets you
use MySQL style date codes, where each code letter is preceded with a percent sign: %Y %m %d etc.</p>
<p>The benefit of doing dates this way is that you don't have to worry about escaping any characters that
@@ -142,7 +142,7 @@ $gmt = local_to_gmt($now);</code>
<h2>gmt_to_local()</h2>
-<p>Takes a Unix timestamp (referenced to GMT) as input, and converts it to a localized timestamp based on the
+<p>Takes a Unix timestamp (referenced to GMT) as input, and converts it to a localized timestamp based on the
timezone and Daylight Saving time submitted. Example:</p>
<code>
@@ -171,7 +171,7 @@ $unix = mysql_to_unix($mysql);</code>
<p>This can be useful if you need to display a date in a form field for submission.</p>
-<p>The time can be formatted with or without seconds, and it can be set to European or US format. If only
+<p>The time can be formatted with or without seconds, and it can be set to European or US format. If only
the timestamp is submitted it will return the time without seconds formatted for the U.S. Examples:
<code>$now = time();<br />
@@ -185,8 +185,8 @@ echo unix_to_human($now, TRUE, 'eu'); // Euro time with seconds</code>
<h2>human_to_unix()</h2>
-<p>The opposite of the above function. Takes a "human" time as input and returns it as Unix. This function is
-useful if you accept "human" formatted dates submitted via a form. Returns FALSE (boolean) if
+<p>The opposite of the above function. Takes a "human" time as input and returns it as Unix. This function is
+useful if you accept "human" formatted dates submitted via a form. Returns FALSE (boolean) if
the date string passed to it is not formatted as indicated above. Example:</p>
<code>$now = time();<br />
diff --git a/user_guide/helpers/directory_helper.html b/user_guide/helpers/directory_helper.html
index 35b2d6db9..34450b131 100644
--- a/user_guide/helpers/directory_helper.html
+++ b/user_guide/helpers/directory_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -90,7 +90,7 @@ only the top level directory set the second parameter to <var>true</var> (boolea
<code>$map = directory_map('./mydirectory/', TRUE);</code>
-<p>Each folder name will be an array index, while its contained files will be numerically indexed.
+<p>Each folder name will be an array index, while its contained files will be numerically indexed.
Here is an example of a typical array:</p>
<code>Array<br />
diff --git a/user_guide/helpers/download_helper.html b/user_guide/helpers/download_helper.html
index 5b2f1ecfe..14dba661c 100644
--- a/user_guide/helpers/download_helper.html
+++ b/user_guide/helpers/download_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -76,7 +76,7 @@ Download Helper
<h2>force_download('<var>filename</var>', '<var>data</var>')</h2>
-<p>Generates server headers which force data to be downloaded to your desktop. Useful with file downloads.
+<p>Generates server headers which force data to be downloaded to your desktop. Useful with file downloads.
The first parameter is the <strong>name you want the downloaded file to be named</strong>, the second parameter is the file data.
Example:</p>
diff --git a/user_guide/helpers/file_helper.html b/user_guide/helpers/file_helper.html
index 319ebfa9b..d51906d99 100644
--- a/user_guide/helpers/file_helper.html
+++ b/user_guide/helpers/file_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html
index a71aa513d..68d44e662 100644
--- a/user_guide/helpers/form_helper.html
+++ b/user_guide/helpers/form_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -175,7 +175,7 @@ echo form_input($data);<br />
// Would produce:<br /><br />
&lt;input type="text" name="username" id="username" value="johndoe" maxlength="100" size="50" style="width:50%" /></code>
-<p>If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the
+<p>If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the
third parameter:
<code>$js = 'onClick="some_function()"';<br />
@@ -184,17 +184,17 @@ echo form_input('username', 'johndoe', $js);</code>
<h2>form_password()</h2>
-<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
+<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
except that is sets it as a "password" type.</p>
<h2>form_upload()</h2>
-<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
+<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
except that is sets it as a "file" type, allowing it to be used to upload files.</p>
<h2>form_textarea()</h2>
-<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
+<p>This function is identical in all respects to the <dfn>form_input()</dfn> function above
except that it generates a "textarea" type. Note: Instead of the "maxlength" and "size" attributes in the above
example, you will instead specify "rows" and "cols".</p>
@@ -224,7 +224,7 @@ echo form_dropdown('shirts', $options, 'large');<br />
&lt;/select></code>
-<p>If you would like the opening &lt;select> to contain additional data, like JavaScript, you can pass it as a string in the
+<p>If you would like the opening &lt;select> to contain additional data, like JavaScript, you can pass it as a string in the
fourth parameter:
<code>$js = 'onChange="some_function()"';<br />
@@ -260,7 +260,7 @@ echo form_checkbox($data);<br />
// Would produce:<br /><br />
&lt;input type="checkbox" name="newsletter" id="newsletter" value="accept" checked="checked" style="margin:10px" /></code>
-<p>As with other functions, if you would like the tag to contain additional data, like JavaScript, you can pass it as a string in the
+<p>As with other functions, if you would like the tag to contain additional data, like JavaScript, you can pass it as a string in the
fourth parameter:
<code>$js = 'onClick="some_function()"';<br />
diff --git a/user_guide/helpers/html_helper.html b/user_guide/helpers/html_helper.html
index 17157bbfa..e32cbc937 100644
--- a/user_guide/helpers/html_helper.html
+++ b/user_guide/helpers/html_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/helpers/index.html b/user_guide/helpers/index.html
index 2a5c69367..129e424ea 100644
--- a/user_guide/helpers/index.html
+++ b/user_guide/helpers/index.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -71,11 +71,11 @@ that help you create form elements, <dfn>Text Helpers</dfn> perform various text
<p>Unlike most other systems in Code Igniter, Helpers are not written in an Object Oriented format. They are simple, procedural functions.
Each helper function performs one specific task, with no dependence on other functions.</p>
-<p>Helpers are intentionally kept very simple so that they can be used within your <strong>View Files</strong> with a minimal amount of code.
+<p>Helpers are intentionally kept very simple so that they can be used within your <strong>View Files</strong> with a minimal amount of code.
This is important if you intend to have designers or non-programmer will be working with your view files, since it keeps the code to a minimum.
</p>
-<p>Code Igniter does not load Helper Files by default, so the first step in using
+<p>Code Igniter does not load Helper Files by default, so the first step in using
a Helper is to load it. Once loaded, it becomes globally available in your <a href="../general/controllers.html">controller</a> and <a href="../general/views.html">views</a>.</p>
<h2>Loading a Helper</h2>
diff --git a/user_guide/helpers/inflector_helper.html b/user_guide/helpers/inflector_helper.html
index ace1b2e07..65cc795eb 100644
--- a/user_guide/helpers/inflector_helper.html
+++ b/user_guide/helpers/inflector_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/helpers/security_helper.html b/user_guide/helpers/security_helper.html
index d45d7c4e1..3953e8b2f 100644
--- a/user_guide/helpers/security_helper.html
+++ b/user_guide/helpers/security_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -76,7 +76,7 @@ Security Helper
<h2>xss_clean()</h2>
-<p>Provides Cross Site Script Hack filtering. This function is an alias to the one in the
+<p>Provides Cross Site Script Hack filtering. This function is an alias to the one in the
<a href="../libraries/input.html">Input class</a>. More info can be found there.</p>
diff --git a/user_guide/helpers/string_helper.html b/user_guide/helpers/string_helper.html
index ca28dc668..f43dfc480 100644
--- a/user_guide/helpers/string_helper.html
+++ b/user_guide/helpers/string_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -84,7 +84,7 @@ String Helper
<li><strong>alnum</strong>:&nbsp; Alpha-numeric string with lower and uppercase characters.</li>
<li><strong>numeric</strong>:&nbsp; Numeric string.</li>
<li><strong>nozero</strong>:&nbsp; Numeric string with no zeros.</li>
-<li><strong>unique</strong>:&nbsp; Encrypted with MD5 and uniquid(). Note: The length parameter is not available for this type.
+<li><strong>unique</strong>:&nbsp; Encrypted with MD5 and uniquid(). Note: The length parameter is not available for this type.
Returns a fixed length 33 character string.</li>
</ul>
diff --git a/user_guide/helpers/text_helper.html b/user_guide/helpers/text_helper.html
index 75190da3c..1c704c409 100644
--- a/user_guide/helpers/text_helper.html
+++ b/user_guide/helpers/text_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
diff --git a/user_guide/helpers/typography_helper.html b/user_guide/helpers/typography_helper.html
index 7213b9d8a..1d1c6d69a 100644
--- a/user_guide/helpers/typography_helper.html
+++ b/user_guide/helpers/typography_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -76,7 +76,7 @@ Typography Helper
<h2>auto_typography()</h2>
-<p>Formats text so that it is semantically and typographically correct HTML. Takes a string as input and returns it with
+<p>Formats text so that it is semantically and typographically correct HTML. Takes a string as input and returns it with
the following formatting:</p>
<ul>
@@ -94,14 +94,14 @@ the following formatting:</p>
<code>$string = auto_typography($string);</code>
-<p><strong>Note:</strong> Typographic formatting can be processor intensive, particularly if you have a lot of content being formatted.
+<p><strong>Note:</strong> Typographic formatting can be processor intensive, particularly if you have a lot of content being formatted.
If you choose to use this function you may want to consider
<a href="../general/caching.html">caching</a> your pages.</p>
<h2>nl2br_except_pre()</h2>
-<p>Converts newlines to &lt;br /&gt; tags unless they appear within &lt;pre&gt; tags.
+<p>Converts newlines to &lt;br /&gt; tags unless they appear within &lt;pre&gt; tags.
This function is identical to the native PHP <dfn>nl2br()</dfn> function, except that it ignores &lt;pre&gt; tags.</p>
<p>Usage example:</p>
diff --git a/user_guide/helpers/url_helper.html b/user_guide/helpers/url_helper.html
index d54acc12f..eb0fd56e1 100644
--- a/user_guide/helpers/url_helper.html
+++ b/user_guide/helpers/url_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>
@@ -78,7 +78,7 @@ URL Helper
<p>Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your
site <dfn>index_page</dfn> in your config file) will be added to the URL, as will any URI segments you pass to the function.</p>
-<p>You are encouraged to use this function any time you need to generate a local URL so that your pages become more portable
+<p>You are encouraged to use this function any time you need to generate a local URL so that your pages become more portable
in the event your URL changes.</p>
<p>Segments can be optionally passed to the function as a string or an array. Here is a string example:</p>
@@ -139,9 +139,9 @@ will be added automatically from the information specified in your config file.
<h2>anchor_popup()</h2>
-<p>Nearly identical to the <dfn>anchor()</dfn> function except that it opens the URL in a new window.
+<p>Nearly identical to the <dfn>anchor()</dfn> function except that it opens the URL in a new window.
-You can specify JavaScript window attributes in the third parameter to control how the window is opened. If
+You can specify JavaScript window attributes in the third parameter to control how the window is opened. If
the third parameter is not set it will simply open a new window with your own browser settings. Here is an example
with attributes:</p>
@@ -236,7 +236,7 @@ $url = prep_url($url);</code>
to redirect to a local URL within your site. You will <strong>not</strong> specify the full site URL, but rather simply the URI segments
to the controller you want to direct to. The function will build the URL based on your config file values.</p>
-<p>The second parameter allows you to choose between the "location"
+<p>The second parameter allows you to choose between the "location"
method or the "refresh" method. Location is faster, but on Windows servers it can sometimes be a problem. Example:</p>
<code>if ($logged_in == FALSE)<br />
diff --git a/user_guide/helpers/xml_helper.html b/user_guide/helpers/xml_helper.html
index 22e7009b2..0e014fc02 100644
--- a/user_guide/helpers/xml_helper.html
+++ b/user_guide/helpers/xml_helper.html
@@ -12,7 +12,7 @@
<script type="text/javascript" src="../nav/moo.fx.js"></script>
<script type="text/javascript">
window.onload = function() {
- myHeight = new fx.Height('nav', {duration: 400});
+ myHeight = new fx.Height('nav', {duration: 400});
myHeight.hide();
}
</script>