Admin_ObjectHelperController::loadObjectDataAction PHP Метод

loadObjectDataAction() публичный Метод

    public function loadObjectDataAction()
    {
        $object = Object\AbstractObject::getById($this->getParam("id"));
        $result = [];
        if ($object) {
            $result['success'] = true;
            $fields = $this->getParam("fields");
            $result['fields'] = Object\Service::gridObjectData($object, $fields);
        } else {
            $result['success'] = false;
        }
        $this->_helper->json($result);
    }