So apparently you can't use variable expansion in class member definition

feature/node-rewrite
Sven Slootweg 13 years ago
parent 5cee9c0a1e
commit 7a63e6462f

@ -16,8 +16,8 @@ if(!isset($_CVM)) { die("Unauthorized."); }
class Node extends CPHPDatabaseRecordClass class Node extends CPHPDatabaseRecordClass
{ {
public $table_name = "nodes"; public $table_name = "nodes";
public $fill_query = "SELECT * FROM {$this->table_name} WHERE `Id` = '%d'"; public $fill_query = "SELECT * FROM nodes WHERE `Id` = '%d'";
public $verify_query = "SELECT * FROM {$this->table_name} WHERE `Id` = '%d'"; public $verify_query = "SELECT * FROM nodes WHERE `Id` = '%d'";
public $prototype = array( public $prototype = array(
'string' => array( 'string' => array(

Loading…
Cancel
Save