<?php

namespace GriffinForms\Admin\App;

class Format extends \GriffinForms\Admin\Format
{
    protected $sql;

    protected function setSql()
    {
        $this->sql = \GriffinForms\Admin\Sql\App::getInstance();
    }

    public function getProp($name)
    {
        return $this->$name;
    }

    public function __construct()
    {
        $this->setAll();
        if (method_exists($this, $this->meta . 'Js')) {
            add_action('admin_print_footer_scripts', array($this, $this->meta . 'Js'));
        }
    }
}