Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __call($var,$args)
- {
- if($var == "uniq_id" || $var == "loaded" || in_array($var,$this->open_properties))
- {
- if(sizeof($args) > 0)
- {
- $arg = $args[0];
- $this->$var = $arg;
- }
- else
- {
- if(isset($this->$var))
- {
- return $this->$var;
- }
- else
- {
- return null;
- }
- }
- }
- else
- {
- throw new Exception("Invalid var call [$var]!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement