protected function getDatatableInstance($classname)
    {
        if (!class_exists($classname)) {
            return false;
        }
        $datatable  = app($classname);
        $reflection = new ReflectionClass($datatable);
        if (($filename   = $reflection->getFileName()) && !str_contains($filename, 'core')) {
            if (!app('antares.extension')->getActiveExtensionByPath($filename)) {
                return false;
            }
        }
        return $datatable;
    }
protected function getDatatableInstance($classname)
    {
        if (!class_exists($classname)) {
            return false;
        }
        $datatable  = app($classname);
        $reflection = new ReflectionClass($datatable);
        if (($filename   = $reflection->getFileName()) && !str_contains($filename, 'core')) {
            if (!app('antares.extension')->getActiveExtensionByPath($filename)) {
                return false;
            }
        }
        return $datatable;
    }
protected function getDatatableInstance ( $ classname ) { if ( ! class_exists ( $ classname ) ) { return false ; } $ datatable = app ( $ classname ) ; $ reflection = new ReflectionClass ( $ datatable ) ; if ( ( $ filename = $ reflection -> getFileName ( ) ) && ! str_contains ( $ filename , 'core' ) ) { if ( ! app ( 'antares.extension' ) -> getActiveExtensionByPath ( $ filename ) ) { return false ; } } return $ datatable ; }
Gets instance of datatable

@param String $classname
@return boolean
Gets instance of datatable