Skip to main content Help Control Panel

Aubagne HipHop

Tout le Hip Hop d'Aubagne et des alentours

Home «   Server software «  

Documentation: behaviors/behavior.php

class Behavior - Programmable extensions of sections, articles, and files

Behaviors are software extensions used from within sections to change YACS basic behavior on key event, such as:

What are member functions?

Behavior has one single constructor, that supports run-time parameters:

The interface itself is made of following member functions, that have to be overloaded into derivated classes:

How do behaviors compare to overlays?

Overlays are aiming to store additional structured data in articles, where behaviors are stateless, and apply equally to all pages of some kind.

This script is a reference file of this system.

Licence: GNU Lesser General Public License

Auteurs:

behaviors/behavior.php - Parameters specific to this behavior

allow() - Check access rights

function allow($script, $anchor = NULL)

@paral string target anchor, if any

Behavior() - Initialize one behavior instance

function Behavior($parameters='')

This function is invoked by behavior loader to allow for transmission of run-time parameters.

To be overloaded in derivated class.
Tools
Browse the source of this script
Server software