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