La classe Yaf_Action_Abstract

(Yaf >=1.0.0)

Introduction

Une action peut être définie dans un fichier séparé en Yaf (voir Yaf_Controller_Abstract). Ce peut être aussi une instance de la classe Yaf_Action_Abstract.

Bien que ce doit être un point d'entrée pouvant être appelé par Yaf, vous devez implémenter la méthode abstraite Yaf_Action_Abstract::execute() dans la classe personnalisée de l'action.

Synopsis de la classe

Yaf_Action_Abstract extends Yaf_Controller_Abstract {
/* Propriétés */
protected $_controller;
/* Méthodes */
abstract publicexecute(mixed ...$args): mixed
public getControllerName(): string
/* Méthodes héritées */
protected Yaf_Controller_Abstract::display(string $tpl, array $parameters = ?): bool
public Yaf_Controller_Abstract::forward(string $action, array $paramters = ?): bool
public Yaf_Controller_Abstract::getInvokeArg(string $name): void
public Yaf_Controller_Abstract::initView(array $options = ?): void
public Yaf_Controller_Abstract::redirect(string $url): bool
protected Yaf_Controller_Abstract::render(string $tpl, array $parameters = ?): string
public Yaf_Controller_Abstract::setViewpath(string $view_directory): void
}

Propriétés

_module

_name

_request

_response

_invoke_args

_view

_controller

Sommaire

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top