Hello,
i've a general question concerning PHP's architecture.
Why isn't there a native packaging concept in PHP?
I think php became much more powerfull with the extended OOP features
introduced in PHP5 - without a packaging concept you couldn't use these
features in big business (in terms of
verffentlicht per Mail versendet
Thanks for your answer!
Terje Sletteb wrote:
From: Vivian Steller [EMAIL PROTECTED]
i've a general question concerning PHP's architecture.
Why isn't there a native packaging concept in PHP?
This was also suggested on comp.lang.php, recently (the nested
Hello at all,
ok my problem in a nutshell: i need multiple inheritance! is there a
solution to fake this functionallity in php5?
i have the following problem:
the goal is to implement my own DomXML implementation based on the existing
DomNode, DomDocument, Dom... Classes.
thus, i implement my
hi at all,
i've a very strange problem but i don't know if this a real bug or only my
imcompetence?!
it is a problem with class variables set by __constructor() function in
PHP5...
look at this code:
?
class MyClass extends DomNode { // remove extends DomNode and
everything is fine
Hello,
as you know there is a new callback function __call($method, $params) in
php5. the __call() method of an object is called, if the method named
$method is not declared in this class.
i want this function simply call the method of another class with
SomeClass::$method(...) but i'm getting
Vivian Steller wrote:
Hello,
as you know there is a new callback function __call($method, $params) in
php5. the __call() method of an object is called, if the method named
$method is not declared in this class.
i want this function simply call the method of another class with
SomeClass
Vivian Steller wrote:
...
class MyClass {
function __call($method, $params) {
// $params = Array(mixed var, mixed var, ...);
print(request for . $method . ()\n);
// how to get objects in this string?!
// do i have to implement switch
John W. Holmes wrote:
From: Vivian Steller [EMAIL PROTECTED]
Vivian Steller wrote:
...
pre
?php
class MyClass {
function __call($method, $params) {
// $params = Array(mixed var, mixed var, ...);
print(request
Hi,
i've just another problem concerning classes, inheritance and the '::'
Syntax. Take a look at the following example code:
pre
?php
class MyClass extends MyParent{
private $__arr = Array();
public function __construct() {
hello,
talking about php5, i'm missing read-only attributes/variables for
classes/objects. i.e. this would be very useful for implementing the new
DOM Level 3 Interfaces as given in http://www.w3.org/TR/2003
CR-DOM-Level-3-Core-20031107/idl-definitions.html .
And I don't think of any reason for
Jan Lehnardt wrote:
[...]
* Constants.
The Zend Engine 2.0 introduces per-class constants.
Example:
?php
class Foo {
const constant = 'constant';
}
echo 'Foo::constant = ' . Foo::constant . \n;
?
Old code that has no user-defined classes or functions
named 'const' will run
Hello,
the following code shows my problem:
?php
class MyElement extends DomElement {
function __construct($name) {
parent::__construct($name);
}
}
$doc = new DomDocument();
$node = new
Christian Stocker wrote:
...
Vivian, it's not possible the set the namespace according to the W3C
standard, except with createElementNS(). As Adam said, in PHP 4, there
was the option set_namespace, which isn't ported to PHP5 (yet).
Maybe we should port that function as well, to allow some
Turbo wrote:
Hi
I cann't call Global vars or Environment var on Class.How to's i do to
call it?
I want to call variable same below.
var $location
=http://.$HTTP_SERVER_VARS['HTTP_HOST'].$_SERVER['REQUEST_URI'].?
$HTTP_SERVER_VARS['QUERY_STRING'];
Thank you.
Turbo.
i would try
Hello,
checking out the behavior of Namespaces Prefixes of the new dom
implementation of PHP5 I got some (for me!) unexpected results.
look at the following source code: (plz copypaste it to your editor ;)
pre
?php
// PHP5: ext/dom: Namespace Tests
function
Rob Richards wrote:
From: Christian Stocker
$node-setAttributeNS(http://www.w3.org/2000/xmlns/;, xmlns:b,
http://www.somedomain.de/;);
IMHO, that would be very confusing.
I liked the idea by vivian with a third optional namespaceURI argument
for the element object, so that at least
Hello,
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
methods like:
__construct
rewind
hasMore
key
current
next
getPath
getFilename
getPathname
getPerms
getInode
...
but i don't
Ben Ramsey wrote:
using PHP5 Beta 4 I saw some new classes like DirectoryIterator with nice
methods like:
Where did you see these classes? Is it a PEAR package? I haven't seen
these in the PHP manual.
You can find them using the following function:
function printDeclaredClasses() {
Hello,
in the latest snapshot i found some very important differences to the php5
beta 4 version concerning the behavior of inherited classes. please look at
the following example:
pre
?php
class MyClass extends MyParent{
function test($arg) {
Walter A. Boring IV wrote:
I say keep compatibility. If you want to enforce this, then declare an
interface. That is after all why they exist.
Walt
...
Would be nice if you could give a simple example - i really have problems
working with interfaces :(
My problem was to design a
Hello,
is it possible to check if a variable declared as private?
I do not want to use reflection api in this case...
?php
class MyClass {
private $var = something;
}
$obj = new MyClass();
// something like this would be nice...
Jakes wrote:
The word private says it all - If you create a object,
you are not going to be able to use it, because its
private to that class. Its a class variable, not a object variable
oh, yeah - your right of course... taking a look at get_object_vars($obj)
output doesn't show private
hello again,
once again a question about class properties, this time more reasonable...
Is there a possibility to check wether a static variable is set or not?
?php
class MyClass {
public static $var;
}
print_r(get_class_vars(MyClass));
?
will not show
Carlos wrote:
hello ... I'm working with simplexml (php5) to manipulate the data in
xml file, but I'm having one problem.
i'm not familiar with simplexml but with the dom functions and i think (as
simplexml is based on dom) the simplexml objects will work with dom objects
as well?!
otherwise
hi again,
i forgot adding the attributes, sorry :)
here it is...
I need manipulate the nodes (add and remove) .
example
I need add more one node
interface name=dmz type=ethernet device=eth3 ip=xxx
subnet=24/
?php
// create a new node
$newInterfaceNode =
Hello,
i know that this post should better been sent to bugs.php but making my
first experiences on segmentation faults i can't identify the right causes
to report it... have a look and help me getting right informations to post
the bug so that it can be solved.
Error type:
'''
error_log
hello,
once again a post about the tricky namespaces. I played with the following
functions concerning namespaces:
domdocument-createElementNS
domdocument-createAttributeNS
domelement-setAttributeNS
domelement-getAttributeNS
(domelement-hasAttributeNS)
as i found out the behavior of some
27 matches
Mail list logo