Whitespace cleanup
This commit is contained in:
parent
396a3f067e
commit
a16e5f2479
@ -44,7 +44,7 @@ class Event {
|
|||||||
$event_id = $insert->insert_id;
|
$event_id = $insert->insert_id;
|
||||||
return new Event($event_id);
|
return new Event($event_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct($id) {
|
public function __construct($id) {
|
||||||
$search = prepare('select `id` from `event`
|
$search = prepare('select `id` from `event`
|
||||||
where `id`=?');
|
where `id`=?');
|
||||||
@ -57,7 +57,7 @@ class Event {
|
|||||||
$this->id = $result['id'];
|
$this->id = $result['id'];
|
||||||
$this->update_fields();
|
$this->update_fields();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function update_fields() {
|
protected function update_fields() {
|
||||||
$get = prepare('select * from `event` where `id`=?');
|
$get = prepare('select * from `event` where `id`=?');
|
||||||
bind($get, 'i', $this->id);
|
bind($get, 'i', $this->id);
|
||||||
@ -83,7 +83,7 @@ class Event {
|
|||||||
public function get_returntime() {
|
public function get_returntime() {
|
||||||
return $this->returntime;
|
return $this->returntime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function is_active() {
|
public function is_active() {
|
||||||
if($this->returntime === null) {
|
if($this->returntime === null) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -15,7 +15,7 @@ class Loan extends Event {
|
|||||||
commit_trans();
|
commit_trans();
|
||||||
return new Loan($event_id);
|
return new Loan($event_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __construct($id) {
|
public function __construct($id) {
|
||||||
parent::__construct($id);
|
parent::__construct($id);
|
||||||
$search = prepare('select * from `loan` where `event`=?');
|
$search = prepare('select * from `loan` where `event`=?');
|
||||||
@ -27,7 +27,7 @@ class Loan extends Event {
|
|||||||
}
|
}
|
||||||
$this->update_fields();
|
$this->update_fields();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function update_fields() {
|
protected function update_fields() {
|
||||||
parent::update_fields();
|
parent::update_fields();
|
||||||
$get = prepare('select * from `loan` where `event`=?');
|
$get = prepare('select * from `loan` where `event`=?');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user