PHP Classes

File: examples/intercepting/tets.php

Recommend this page to a friend!
  Classes of Nicola Covolo   Editable   examples/intercepting/tets.php   Download  
File: examples/intercepting/tets.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Editable
Add functions and variables dynamically to objects
Author: By
Last change: Update of examples/intercepting/tets.php
Date: 5 months ago
Size: 205 bytes
 

Contents

Class file image Download
<?php
include("../../Editable.php");
include(
"B.php");


$authorize = function()
{
    echo
"authorizing..<br>";
};

$f = new B();
$f->interceptFunction(array($f,"action"),$authorize);
$f->action();


?>