diff options
author | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
---|---|---|
committer | Derek Jones <derek.jones@ellislab.com> | 2008-05-13 06:22:33 +0200 |
commit | 0b59f270a432f8c7b6128981f0a39b4a2e2fbd34 (patch) | |
tree | 1e7655eabd76bb981692f5d4f21cb1fc7be3e9cd /system/libraries/Table.php | |
parent | 5cf664748ee295867f593d7eb7991bd35fe8eca6 (diff) |
Some sweeping syntax changes for consistency:
(! foo) changed to ( ! foo)
|| changed to OR
changed newline standardization code in various places from preg_replace to str_replace
Diffstat (limited to 'system/libraries/Table.php')
-rw-r--r-- | system/libraries/Table.php | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/system/libraries/Table.php b/system/libraries/Table.php index f4df02e76..a803b6f69 100644 --- a/system/libraries/Table.php +++ b/system/libraries/Table.php @@ -1,4 +1,4 @@ -<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
+<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
@@ -53,7 +53,7 @@ class CI_Table { */
function set_template($template)
{
- if (! is_array($template))
+ if ( ! is_array($template))
{
return FALSE;
}
@@ -93,7 +93,7 @@ class CI_Table { */
function make_columns($array = array(), $col_limit = 0)
{
- if (! is_array($array) OR count($array) == 0)
+ if ( ! is_array($array) OR count($array) == 0)
{
return FALSE;
}
@@ -186,7 +186,7 @@ class CI_Table { {
// The table data can optionally be passed to this function
// either as a database result object or an array
- if (! is_null($table_data))
+ if ( ! is_null($table_data))
{
if (is_object($table_data))
{
@@ -245,7 +245,7 @@ class CI_Table { $i = 1;
foreach($this->rows as $row)
{
- if (! is_array($row))
+ if ( ! is_array($row))
{
break;
}
@@ -308,7 +308,7 @@ class CI_Table { */
function _set_from_object($query)
{
- if (! is_object($query))
+ if ( ! is_object($query))
{
return FALSE;
}
@@ -316,7 +316,7 @@ class CI_Table { // First generate the headings from the table column names
if (count($this->heading) == 0)
{
- if (! method_exists($query, 'list_fields'))
+ if ( ! method_exists($query, 'list_fields'))
{
return FALSE;
}
@@ -346,7 +346,7 @@ class CI_Table { */
function _set_from_array($data, $set_heading = TRUE)
{
- if (! is_array($data) OR count($data) == 0)
+ if ( ! is_array($data) OR count($data) == 0)
{
return FALSE;
}
@@ -354,7 +354,7 @@ class CI_Table { $i = 0;
foreach ($data as $row)
{
- if (! is_array($row))
+ if ( ! is_array($row))
{
$this->rows[] = $data;
break;
@@ -393,7 +393,7 @@ class CI_Table { $this->temp = $this->_default_template();
foreach (array('table_open','heading_row_start', 'heading_row_end', 'heading_cell_start', 'heading_cell_end', 'row_start', 'row_end', 'cell_start', 'cell_end', 'row_alt_start', 'row_alt_end', 'cell_alt_start', 'cell_alt_end', 'table_close') as $val)
{
- if (! isset($this->template[$val]))
+ if ( ! isset($this->template[$val]))
{
$this->template[$val] = $this->temp[$val];
}
@@ -435,6 +435,6 @@ class CI_Table { }
- -/* End of file Table.php */ +
+/* End of file Table.php */
/* Location: ./system/libraries/Table.php */
\ No newline at end of file |