<?php
/**
 * An abstract class for controller filters.
 *
 * This class provides basic pre and post execute functions.
 */
abstract class controller_filter extends controller_extension
{
    ////////////////////////////////////////////////////////////////////////////
    // Construct and destruct functions.

    ////////////////////////////////////////////////////////////////////////////
    // Overload functions.

    ////////////////////////////////////////////////////////////////////////////
    // Interface functions.

    /**
     * Executes the filter (pre action).
     *
     * @return boolean True if the rest of the execution is to be aborted, else
     * false.
     */
    public function pre_execute()
    {
    }

    /**
     * Executes the filter (post action).
     *
     * @return boolean True if the rest of the execution is to be aborted, else
     * false.
     */
    public function post_execute()
    {
    }

    ////////////////////////////////////////////////////////////////////////////
    // Internal functions.
}
