DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

fullo's picture

Unregistered

Feeds

aliases

  • fullo
  • Francesco Fullone
  • fullo
  • fullo
  • fullo

fullo

2 months ago

in miniCamp: fare business in tempo di crisi on BolognaIN
Francesco Fullone
http://www.ideato.it

Offrire servizi su web senza cambiare l'AS400, ovvero come utilizzare il vecchio gestionale per offrire servizi ai propri clienti.

8 months ago

in Blogger Accreditations for LeWeb Paris on Climb to the Stars
the google form doesn't work :(

1 year ago

in Using Objects for Wordpress plugins on Fun with WordPress
as I know call_user_function_array can be used to call statically an object method.

But I don't know if there are some valid reasons to not use __contruct($args) { $this->myClass($args) ); as you suggest.

Btw, I've studied a little more and I've discovered that
"To ease the transition from PHP 4, if PHP 5 cannot find a method names __construct() within your object hierarchy, it revers to the PHP 4 constructor naming scheme and searches accordingly" (from "Upgrading to PHP5" Adam
Trachtenberg (O'Reilly))


however, IMHO, this should not be used. Especially if you work with object that extends other object. Because it should be very easy to break your code simply changing the name of the parent class [parent::MyParent ==> parent::NewParentName ].

1 year ago

in Using Objects for Wordpress plugins on Fun with WordPress
nice tutorial, but instead of use a php4-only object you should create a php5, or crosscompatible, object.

ie.
class myClass(){

function __construct(){
// do something
}

function myClass($args){
//php 4 compliant fake constructor
$args = func_get_args();
call_user_func_array(array(&$this, '__construct'), $args);

}
Returning? Login