PEAR_Delegator
[ class tree: PEAR_Delegator ] [ index: PEAR_Delegator ] [ all elements ]

Class: PEAR_Delegator_Extensions

Source Location: /PEAR_Delegator-0.1.0/Delegator/DelegatorExtensions.php

Class Overview


This class provides a static delegate that adds methods to a PEAR_Delegator instance


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
This class provides a static delegate that adds methods to a PEAR_Delegator instance


[ Top ]


Method Detail

getDelegateForMethodFirst   [line 325]

array getDelegateForMethodFirst( $owner, $method, string $method,...)

Gets the first native delegate that responds to a certain method.

The method returns the first delegate native to the calling delegator, which can respond to each method in question. Moreover, this method returns delegates that actually implement methods over those that inherit them from delegates.


Parameters:

string   $method,...   —  This specifies the method for whose responder is searched.
   $owner   — 
   $method   — 

[ Top ]

getDelegateForMethodRecursive   [line 211]

array getDelegateForMethodRecursive( $owner, $method1, string $method1,...)

Gets the delegate objects that respond to a certain method.

This method returns delegates native to the calling delegator as well as delegates of delegate owning delegates (it's recursive). This method is provided, because it may be useful, but its use is discouraged, as objects should logically only have access to their native delegates.


Parameters:

string   $method1,...   —  This specifies the method for whose responder is searched.
   $owner   — 
   $method1   — 

[ Top ]

getDelegateForMethodRecursiveExact   [line 275]

array getDelegateForMethodRecursiveExact( $owner, $method1, string $method1,...)

Gets the delegate object (native or otherwise) that implements the method in question.

This method returns the delegate in the delegate hierarchy which actually implements the method. This method is provided, because it may be useful, but its use is discouraged, as objects should logically only have access to their native delegates.

  • Return:
     An array of the form:
     Array
     (
         [method1] = Array
                        (
                            delegate11
                            delegate12
                            ...
                        )
         [methodi] = Array
                        (
                            delegate1i
                            delegate1i
                            ...
                        )
         ...
     )
     Note: If a single method is passed, a traditional array with numbered
     elements is returned.
  • See: PEAR_Delegator_Extensions::getDelegateForMethodRecursive()
  • Access: public

Parameters:

string   $method1,...   —  This specifies the method for whose implementor is searched.
   $owner   — 
   $method1   — 

[ Top ]

getDelegateRecursive   [line 80]

array getDelegateRecursive( $owner, class $classname1)

Gets the delegates that is of the specified class.

This method returns instances of the specified classname as well as child instances of the specified classname, including subdelegates, which are anywhere in the delegate hierarchy. This method is provided, because it may be useful, but its use is discouraged, as objects should logically only have access to their native delegates.


Parameters:

class   $classname1   —  This specifies a delegate classname. Any number of arguments after this is acceptable.
   $owner   — 

[ Top ]

getDelegateRecursiveExact   [line 149]

array getDelegateRecursiveExact( $owner, class $classname1)

Gets the delegate that is of the specified class.

This method returns classes of the specified type. This does not return subdelegates. This method is provided, because it may be useful, but its use is discouraged, as objects should logically only have access to their native delegates.


Parameters:

class   $classname1   —  This specifies a delegate classname. Any number of arguments after this is acceptable.
   $owner   — 

[ Top ]

removeDelegateRecursiveExact   [line 383]

void removeDelegateRecursiveExact( $owner, $specifier, mixed $specifier,...)

Removes the specified delegate recursively

Only exact delegates are removed, as it is otherwise superfluous.


Parameters:

mixed   $specifier,...   —  Specifies the delegate, whose information is is to be removed. If it is a string, then it adheres to the tests of getDelegateExact(). If it is an object, then it searches the for that delegate to remove.
   $owner   — 
   $specifier   — 

[ Top ]

uncacheMethod   [line 421]

bool uncacheMethod( $owner, string $method)

Removes an entry from the _method_map array.

This method is for removing entries in the _method_map array. it simply tests for the entry for existence and removes it.

This is an internal method.


Parameters:

string   $method   —  This method must be in lowercase.
   $owner   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:31:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.