PodsAPI::__call PHP Method

__call() public method

Handle methods that have been deprecated
Since: 2.0
public __call ( $name, $args )
    public function __call($name, $args)
    {
        $name = (string) $name;
        if (!isset($this->deprecated)) {
            require_once PODS_DIR . 'deprecated/classes/PodsAPI.php';
            $this->deprecated = new PodsAPI_Deprecated($this);
        }
        if (method_exists($this->deprecated, $name)) {
            return call_user_func_array(array($this->deprecated, $name), $args);
        } else {
            pods_deprecated("PodsAPI::{$name}", '2.0');
        }
    }