method __get documentation in bbn\Models\Cls\Data
function($name)
{
if (
($name !== 'db') &&
\in_array($name, self::$_bbn_protected_properties, true) &&
method_exists($this, 'get_'.$name)
){
return $this->{'get_'.$name}();
}
else if ( isset(self::$columns[$name]) ){
if ( !isset($this->$name) ){
$this->$name = $this->db->selectOne(self::$table, $name, [self::$primary => $this->id]);
}
return $this->$name;
}
}
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions