Login   Register  
PHP Classes
elePHPant
Icontem

File: func.require_aop.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Guilherme Blanco  >  Transparent PHP AOP  >  func.require_aop.php  
File: func.require_aop.php
Role: Auxiliary script
Content type: text/plain
Description: Function require_aop
Class: Transparent PHP AOP
PHP AOP implementation based on cache compilation
Author: By
Last change: - Fixed bug #00005: "Undefined property: Aspect::$xmlFile in class.Aspect.php"
- Fixed bug #00006: Undefined offset: 0 in class.AOP_CodeCompiler.php line 191"
- Added support to reference returned functions (ie: function & something(...))
. Re-structured compileCustomClassOrMethodToken in AOP_CodeCompiler
. Re-structured compileAutoClassOrMethodToken in AOP_CodeCompiler
- Added "around" Auto Pointcut support in XAD. Two possible behaviors:
. If the proceed(); call is found, the previous code is appended at "before"
AutoPointcut and the code after the proceed(); call is appended at "after" Auto
. If there's no proceed(); call, the whole source is retrieved and attached at
"before" and also attached at "after" AutoPointcuts
- Corrected inverted AOP::COMPACT, that if set as true, should compact (does the
opposite in RC2)
- New way to load external advice code. Now it depends of "asrequire" advice
attribute. The default value is false (old behavior). Possibilities:
. If "true", instead of the whole source being loaded, only a require call is
appended to the compiled file. This optimizes the necessary time in around 90%
. If "false" or not defined, the file source is retrieved and appended to the
compiled file
- Fixed bug #00007: AutoPointcut "after" advice code that is appended even is
the previous comment is a return statement (problem of unreachable code)
- Added new pointcut modifiers:
. nclass: Not In Class
. nfunction: Not In Function
Both can have more than one item, just separate them via comma.
Added check if one item is defined in nclass and also in class XAD attribute.
Also added check to function and nfunction
- Recompile automatically if external advice code is changed. Part of it is
already implemented if asrequire has value "true". Otherwise, it is not checked
(consumes too much resources and time to do this)
- Updated package DTD
- Changed the compiled file name generator. Now it creates a more readable name
Date: 7 years ago
Size: 1,990 bytes

You need to be a registered user and login to get this file.

1,296,058 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

Facebook ConnectGmail or other Google AccountHotmail or Microsoft Windows LiveStackOverflowGitHubYahoo