mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
add method __get()
This commit is contained in:
parent
6d16946a19
commit
a836e65f35
|
@ -36,6 +36,13 @@ class SeedDMS_SQLiteFTS_Document {
|
||||||
*/
|
*/
|
||||||
protected $fields;
|
protected $fields;
|
||||||
|
|
||||||
|
public function __get($key) { /* {{{ */
|
||||||
|
if(isset($this->fields[$key]))
|
||||||
|
return $this->fields[$key];
|
||||||
|
else
|
||||||
|
return false;
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
public function addField($key, $value) { /* {{{ */
|
public function addField($key, $value) { /* {{{ */
|
||||||
if($key == 'document_id') {
|
if($key == 'document_id') {
|
||||||
$this->id = $this->fields[$key] = (int) $value;
|
$this->id = $this->fields[$key] = (int) $value;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user