Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tools for your presenters and controls of Nette Framework.
PHP
branch: master

Merge pull request #9 from matej21/patch-1

Removed magic getter usage
latest commit 4932a7f8a9
@hrach hrach authored

README.md

Nextras\SecuredLinks

Build Status Downloads this Month Stable version HHVM Status

SecuredLinksTrait creates secured signal links. PHP 5.4+ ONLY

Installation

The best way to install is using Composer:

$ composer require nextras/secured-links

Usage of SecuredLinksTrait

abstract class BasePrenseter extends Nette\Application\UI\Presenter
{
    use Nextras\Application\UI\SecuredLinksPresenterTrait;
}


class MyPresenter extends BasePresenter
{
    /**
     * @secured
     */
    public function handleDelete($id)
    {
    }
}


abstract class BaseControl extends Nette\Application\UI\Control
{
    use Nextras\Application\UI\SecuredLinksControlTrait;
}


class MyControl extends BaseControl
{
    /**
     * @secured
     */
    public function handleDelete($id)
    {
    }
}
Something went wrong with that request. Please try again.