Lines Matching refs:A

52 namespace or class. The simple form of statement "use A\B\C\D;" is
53 equivalent to "use A\B\C\D as D;". The use statement can be used at any
64 namespace A\B\C;
69 A special constant __NAMESPACE__ contains the name of the current namespace.
73 namespace A\B\C;
86 current import rules. So if we have "use A\B\C" and then "C\D\e()"
87 it is translated to "A\B\C\D\e()".
89 current import rules. So if we have "use A\B\C" and then "new C()" it
90 is translated to "new A\B\C()".
96 inside namespace (A\B) first tries to find and call function from current
97 namespace A\B\foo() and if it doesn't exist PHP tries to call internal
103 of failure uses internal PHP class. Note that using "new A" in namespace
105 using "new \A" you are able to create any class from the global namespace.
107 A\B\foo() first tries to call function foo() from namespace A\B, then
108 it tries to find class A\B (__autoload() it if necessary) and call its
111 namespace. So "new A\B\C()" refers to class C from namespace A\B.
116 namespace A;
117 foo(); // first tries to call "foo" defined in namespace "A"
123 namespace A;
124 new B(); // first tries to create object of class "B" defined in namespace "A"
130 namespace A;
131 new A(); // first tries to create object of class "A" from namespace "A" (A\A)
132 // then creates object of internal class "A"
136 namespace A;
137 B\foo(); // first tries to call function "foo" from namespace "A\B"
145 namespace A;
146 A\foo(); // first tries to call function "foo" from namespace "A\A"
147 // then tries to call method "foo" of class "A" from namespace "A"
148 // then tries to call function "foo" from namespace "A"
149 // then calls method "foo" of internal class "A"
150 \A\foo(); // first tries to call function "foo" from namespace "A"
151 // then calls method "foo" of class "A" from global scope