Mastering Joomla! 1.5 Extension and Framework Development by James Kennard

By James Kennard

Full of professional suggestion on all points of programming with Joomla!, this e-book is a useful reference advisor you'll flip to many times on your Joomla! improvement initiatives. Hypertext Preprocessor builders who are looking to know how Joomla! works with the intention to complex customization or extension improvement, and wish to benefit find out how to paintings with the Joomla! framework.

Show description

Read Online or Download Mastering Joomla! 1.5 Extension and Framework Development PDF

Similar web-design books

Drupal 7: Visual QuickStart Guide

Visible QuickStart publications, designed in an enticing instructional and reference structure, are the fastest, least difficult, and so much thorough strategy to research purposes, projects, and applied sciences. The visible QuickStart publications are a sensible selection and advisor the learner in a pleasant and respectful tone. Visually provided with copious screenshots, the concentrated discussions by means of subject and initiatives make studying a breeze and fast take you to precisely what you need to research.

iPhone and iPad Web Design For Dummies

A full-color consultant to designing state-of-the-art websites for the iPhone, iPad, and iPod contact! Apple’s touchscreen units have created all over the world techno-lust, conjuring a record-breaking marketplace out of skinny air. iPads, iPhones, and iPods are so famous that they outsell any other gadget of their different types.

Additional resources for Mastering Joomla! 1.5 Extension and Framework Development

Sample text

47 ] The Database loadResult( ) : string This method loads value of the first cell in the result set. If we selected all the data from our table, this method would return the ID for the first record, in this example: 1. This is useful when we want to access a single field in a known record. For example, we might want to know the name of record 2: $query = 'SELECT 'name' FROM '#__test' WHERE 'id'=2'; $db =& JFactory::getDBO(); $db->setQuery($query); echo $db->loadResult(); Bar loadResultArray( numinarray : int=0 ) : array This method loads a column.

Org/. • Use include_once() and require_once() in preference to include() and require(). > in preference to all other PHP code block delimiters. [ 36 ] Chapter 2 phpDocumentor phpDocumentor is a documentation tool that allows us to easily create documentation from PHP source code. The documentation is extracted from the source and from special comments within the source; these comments are very similar to those used by JavaDoc. This example demonstrates how we might document a simple function: /** * Adds two integers together * * @param int $value1 Base value * @param int $value2 Value to add * @return int Resultant vaue */ function addition($value1, $value2) { return ((int)$value1 + (int)$value2) } The multiline comment denotes a DocBlock, notice that it uses a double asterisk at the start.

We can think of them as being a hierarchy in how we instantiate objects. We should use these methods in order of priority: JFactory method, getInstance() method, normal constructor (new). org. getInstance() and JFactory methods always return references; always use the =& assignment operator to prevent copying of objects. In cases where JFactory and a class both provide a method to return an instance of the class, you should generally use the JFactory method in preference. If the class provides a more comprehensive getInstance() method than JFactory, you may want to use the class method to get an instance tailored specifically for your needs.

Download PDF sample

Rated 4.66 of 5 – based on 39 votes