ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Common Style Mistakes, Part 1
Subject:   Style mistakes
Date:   2003-06-13 02:53:17
From:   anonymous2
Chaining function calls is not a mistake, but is good technique, as long as the functions have meaningful names, and your layout is good....


$self->showPage( 'template.tmpl',
array(
'trees' => $self->getTreesByType( $type ),
'bushes' => $self->getBushesByType( $type )
)
);


$self->addToBasket(
$self->getProductID( $style, $colour, $size ),
$quantity
);