Diving in the code of Joomla

Page 1

173 × 240  SPINE: 15  FLAPS: 80

Diving in the code of Joomla K. Drougkas

<?php sheprved. e p r ? < s t h g i r reserved. l s l t A h r g o . i t c r a n r I l t l s , A i s r * n r o . * i e / ministrat ters, Inc t/** oomla.Adm urce Matt d t x J o A a t S . M . a E n l e S e m c N p o r E O o u C J o I 2 S L 1 e .txt 0 g E n e 2 a S e e N p s E O C ; 5 I 2 r 0 L 1 e e 0 0 t g 2 * @pack e 2 a a e l k ) s c C r a ( ; 5 o ht * @p or later t (C) 200 ersion in2 a deep CopyrigDiving 2 h v g n i e o t r s i h y n s g p e r i o c in the code of Joomla examines e r C i v y L p e o c t s c i h n @ * ubl the internal code of Joomla and @copyrig eral Pmanner blic Lice ndetailed * u e P G l U and a N r G e n e G U e GN * @licens its expansion abilities. It also provides the reader with * @license detailed examples in order to create his/her own Joomla */ */ add-ons (components, modules and plug-ins). Finally, e fil ent procedure it analyzes the for the setting of a parwhole a s i rent file a s p i h a t s t i a h s t i Konstantinos Drougkas was h g debugging environment. t a that g a // Set fl fl t e S / / born in Athens in 1969. He 1);This book describes ;step by step the execution of , ’ C E ; X ) E 1 J _ , ‘ ’ ( C e E n OR) its first to the last command. is a graduate of the Patras defi a Joomla EPARATfrom fine(‘_JEX R); Ssession, e O _ d T Y A R R O A T P C E E S R _ I Y D R O Institute of Technology , Joomla has seven phases which are analytically presented IRECT D , ’ S define(‘DS’ D ‘ ( e n { fi e d )) (University of Patras) in it. For the first time in a book can the .php’receive esreader )) { ncode ’ fi p e h d p / . ‘ s e . n fi ) e _ d B.Sc., Computer Engineering _ / such a detailed presentation of the execution. E .‘ _FIL ) _ _ ( _ ; e E ’ m L p a I h n F p r _ . i _ s d ( e ( ; e n s ’ m fi t (Grade 7,86/Distinction), and stage of the execution is explained . ‘/de in a clear and defines.php ists(dirna _a_)real / x E ‘ e L if (file_exis Every _ I . e F l _ ) fi _ _ ( ( _ e E f m L i a he is member of the Hellenic I n thorough way producing case study for one of F r e(__ m ce di a n n o r _ i e d d u e l c c n n o i _ Chamber of Technology the largest software packages (Content Management include (T.E.E.). Konstantinos System, Joomla). The most important parts of the code } } Drougkas is an experienced and the key commands of every phase are decoded in computer engineer and front of the reader. )) { ’ S E N { I F ) E ) D ’ J S _ E ‘ N ( ; teacher residing in the ) in the code of Joomla ,_acquire DEFI __a )comprehensive J E _ L ‘ I ( ; F d ) e ) _ n _ if (!definedviewDiveabout ( fi _ e e E m d L a ! I n ( F r _ i if historical city of Athens code and make n your hp’; dirname(_ s.pown _BASE’its, dinternal e H ; , T ’ ’ fi A p E e P h S d J p A / ‘ . B s ( s _ e e e H d n n T u fi fi A l e e in Greece. His passion for P c d d extensions ! des/ ne(‘J .’/in u fi E l e S c d A n B i _ / H ’ T . A E P S J A B e web development goes back e JPATH_ require_onc to 2007 when he starts his require_onc involvement with Joomla. } ; } ’ p h p . k r ; o ’ w He has made a significant p e h m rk.p /fra o s w e e d m u a l r c f n / i s / e ’ d . u E l number of Joomla sites, JPATH_BAS ASE.’/inc r.php’; B e _ ; p H ’ l T p e A h h P p / J . s r e e e d c and in the last two years he p u n l l o require_once e c es/h ’/in uire_ d . q u E e l S r c A n B ; i _ ’ / H p ’ T h . A p E P . S J r A has focused on the detailed a hp’; oolb ATH_B p t P . / J r s a e e b d c l u n o l o require_once o c _ t n e / i r s / i e ’ u study of the internal code req E.’/includ CODE OF JOOMLA PATH_BASE. S J A B e UNDERSTAND THE INTERNAL _ c H n T o A _ P e J r i e u of Joomla. The combination c q re require_on of his considerable teaching . r e l fi o r p MAKE YOUR OWN JOOMLA EXTENSIONS . r e e h experience, and his deep l t fi pro ; d in l e a l h o u t L n r n e : i t f ; ) d a l ’ a l d o k u a L r n o r a knowledge of the web, terL978-960-564-057-6 // M Mark afte rLoad’) : rk(‘afISBN e a / t m / f > a ‘ R ( E k L r I a F m O > guarantees a pedagogical R P ? $_ FILER O R P _ $ JDEBUoGcelotos ? G U B E approach. JD . n pplicatio a e h t lication. ator’); p e r p t t a a s kostasdrougkas@gmail.com i i e t n h n i t a m t d e s a t trator’); n ‘ a s I ( i i n t n o n i // i a m t t d a s a c n ‘ i I ( l n p / o p / i A t get ory210::6431108 Vatatzi 55 str., 114 73 Athens ac. t: +30 :getApplica F : J y r = o t p c p a a F $ J = : ekdoseis.ocelotos@gmail.com $app ocelotos www. ocelotos. gr . n PUBLISHING o i t a c i l p p a e h t plication. e p s a e h t e s i l a // Initiali // Initi .lang’) rray( n a o ( i e t s a i c l i a l i p t p i ion.lang’) e(array( a n t s ‘ i a i ( c l e i a t l i a p t t p i S $app-> a n r ‘ i e ( > s e U t p t $ap $app->ge etUserSta g > > = p ’ p e a g $ a u > g = n a ’ l e ‘ ‘languag

Diving in the code of

Joomla

Release 2.5

by Konstantinos Drougkas

PUBLISHING

TEL

cover_joomla.indd 1

ocelotos ocelotos PUBLISHING PUBLISHING

e-mail

5/12/2013 2:30:50 PM


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.