Changed null to NULL

This commit is contained in:
Deon George
2012-07-05 13:06:17 +10:00
parent c8fb3253aa
commit 326eb7bef3
12 changed files with 17 additions and 17 deletions

View File

@@ -79,7 +79,7 @@ class Service_Traffic_ADSL_iiNetADSL extends Service_Traffic_ADSL {
}
$return = array();
foreach (XML::factory(null,'ii_feed',$data)->volume_usage->volume_usage->get('day_hour') as $day_hour) {
foreach (XML::factory(NULL,'ii_feed',$data)->volume_usage->volume_usage->get('day_hour') as $day_hour) {
$attrs = array();
$period = $day_hour->attributes();

View File

@@ -34,7 +34,7 @@ class Service_Traffic_ADSL_PeopleAgent extends Service_Traffic_ADSL {
}
$this->fetchresult = TRUE;
foreach (XML::factory(null,null,$data)->get('user') as $user) {
foreach (XML::factory(NULL,NULL,$data)->get('user') as $user) {
$attrs = array();
$userattrs = $user->attributes();

View File

@@ -53,7 +53,7 @@
<table>
<tr>
<td style="width: 40%;">Traffic Used This Month</td>
<td style="width: 60%;" class="data"><?php echo $so->traffic_month(null); ?></td>
<td style="width: 60%;" class="data"><?php echo $so->traffic_month(NULL); ?></td>
</tr>
<tr>
<td>Traffic Used Last Month</td>

View File

@@ -55,7 +55,7 @@ abstract class Host_Plugin_Plesk extends Host_Plugin {
protected function init() {
$this->_loaded = FALSE;
$this->xml = XML::factory(null,'plesk');
$this->xml = XML::factory(NULL,'plesk');
$this->packet = $this->xml->add_node('packet','',array('version'=>$this->protocol));
}
@@ -82,7 +82,7 @@ abstract class Host_Plugin_Plesk extends Host_Plugin {
$response = $request->execute();
$result = XML::factory(null,'plesk',$response->body());
$result = XML::factory(NULL,'plesk',$response->body());
if ($result->status->value() == 'ok')
$this->_loaded = TRUE;

View File

@@ -199,7 +199,7 @@ class Controller_Task_Invoice extends Controller_Task {
$iio->product_id = $so->product_id;
$iio->quantity = $pdata['prorata'];
$iio->item_type = 0; // Service Billing
$iio->discount_amt = null; // @todo
$iio->discount_amt = NULL; // @todo
$iio->price_type = $so->product->price_type;
$iio->price_base = $so->price();
$iio->recurring_schedule = $so->recur_schedule;
@@ -222,7 +222,7 @@ class Controller_Task_Invoice extends Controller_Task {
$iio->charge_id = $co->id;
$iio->quantity = $co->quantity;
$iio->item_type = 5; // @todo This probably should not be hard coded as "5".
$iio->discount_amt = null; // @todo
$iio->discount_amt = NULL; // @todo
$iio->price_base = $co->amount;
$iio->date_start = $co->date_orig;
$iio->date_stop = $co->date_orig; // @todo
@@ -327,7 +327,7 @@ class Controller_Task_Invoice extends Controller_Task {
foreach (ORM::factory('invoice_item')->find_all() as $iio) {
if ($iio->product_name AND $iio->product_id) {
if (md5(strtoupper($iio->product_name)) == md5(strtoupper($iio->product->name()))) {
$iio->product_name = null;
$iio->product_name = NULL;
$iio->save();
} else {
print_r(array("DIFF",'id'=>$iio->id,'pn'=>serialize($iio->product_name),'ppn'=>serialize($iio->product->name()),'pid'=>$iio->product_id,'test'=>strcasecmp($iio->product_name,$iio->product->name())));