Joomla.it Forum
Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => : v1nc3nz0 12 Sep 2007, 19:09:09
-
Ho ottimizzato il get delle classi
Da codice:
public function get( $_property ) {
if(isset( $this->$_property )) {
return $this->$_property;
} else {
return null;
}
}
A codice:
public function get($_property) {
return isset($this->$_property) ? $this->$_property : null;
}
Che ne pensate?