added getTableName method
This commit is contained in:
parent
aadeac9f86
commit
e791d27671
@ -23,6 +23,9 @@ class Block {
|
|||||||
public function getError() {
|
public function getError() {
|
||||||
return $this->sError;
|
return $this->sError;
|
||||||
}
|
}
|
||||||
|
public function getTableName() {
|
||||||
|
return $this->table;
|
||||||
|
}
|
||||||
|
|
||||||
public function getLast() {
|
public function getLast() {
|
||||||
$stmt = $this->mysqli->prepare("SELECT * FROM $this->table ORDER BY height DESC LIMIT 1");
|
$stmt = $this->mysqli->prepare("SELECT * FROM $this->table ORDER BY height DESC LIMIT 1");
|
||||||
@ -108,7 +111,7 @@ class Block {
|
|||||||
$stmt->close();
|
$stmt->close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFinder($block_id, $account_id=NULL) {
|
public function setFinder($block_id, $account_id=NULL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user