Admin_PortalController::portletModifiedDocumentsAction PHP Метод

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

    public function portletModifiedDocumentsAction()
    {
        $list = Document::getList(["limit" => 10, "order" => "DESC", "orderKey" => "modificationDate"]);
        $response = [];
        $response["documents"] = [];
        foreach ($list as $doc) {
            $response["documents"][] = ["id" => $doc->getId(), "type" => $doc->getType(), "path" => $doc->getRealFullPath(), "date" => $doc->getModificationDate(), "condition" => "userModification = '" . $this->getUser()->getId() . "'"];
        }
        $this->_helper->json($response);
    }