introduction to elgg. php based applications development at mobicules
DESCRIPTION
Mobicules is a web and mobile applications development company in Noida, India with extensive capabilities at conceptualizing, developing, enhancing and maintaining web applications, mobile applications and social applications including Facebook application development. Mobicules’ domain expertise spans developing travel/trip planning sites, Social Networks, Facebook/OpenSocial applications, Mobile apps including android development and iphone application development. With a team comprising people drawn from the best engineering schools in the country, Mobicules has built many interesting and sophisticated products for a range of clients. From some of the biggest brands to many interesting technology start-ups and new ventures, Mobicules has been able to form really successful partnerships across the globe – US, Europe and Asia.With a team that is very agile with technology, Mobicules has, in a short span of time, built very deep cross-technology and cross-platform expertise. Engineers at Mobicules are adept at mobile technologies and web technologies, helping them design and develop better, more scalable and maintainable applications. Combining this web development expertise with excellent in-house QA and design teams, Mobicules provides end-to-end solutions to develop applications of any scale and sophistication.TRANSCRIPT
![Page 2: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/2.jpg)
What is Elgg ?
• Elgg built on LAMP and is open source
• Roll out your own social network• Bundles social networking
components• Building on Elgg is easy
![Page 3: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/3.jpg)
Components
Pages
RSS
Files
Tags
Comment
Blog
Messages
Widgets
Friends/Groups
Forum
![Page 4: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/4.jpg)
Features
• Advanced user management and administration
• Cross-site tagging• Powerful access control list• Internationalization support• Multiple view support (eg. cell phone,
iPhone)• Advanced templating engine• Widget framework• Opensocial support
![Page 5: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/5.jpg)
Customize Page
![Page 6: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/6.jpg)
Elgg Data Model
![Page 7: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/7.jpg)
Events
• Events triggered when certain things happen– User Action– Callbacks– Special Events (Boot, Init)
• Hook has to be registered to handle the specific events
register_elgg_event_handler('init','system','entities_init');
![Page 8: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/8.jpg)
Views
• Elgg site can support different interface pages – Standard HTML – HTML optimised for accessibility – Mobile Internet – iPhone – Embeddable widget
![Page 9: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/9.jpg)
Plugins
• Most of the end user functionality in Elgg comes from plugins
• Plugins reside under /mod folder– start.php: control hub of a plugin– Register plugin inside Elgg init event
register_elgg_event_handler('init','system','entities_init');
![Page 10: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/10.jpg)
Creating a Simple Blog Plugin
• Create Object View<h1><?php echo $vars['entity']->title; ?></h1>
<p><?php echo $vars['entity']->body; ?></p>
<?php echo elgg_view('output/tags', array('tags' => $vars['entity']->tags)); ?>
• Create Form<form action="<?php echo $vars['url']; ?>action/blog/save" method="post">
<?php echo elgg_echo("title"); ?><br />
<?php echo elgg_view('input/text',array('internalname' => 'title')); ?>
<?php echo elgg_echo("body"); ?><br /> <?php echo elgg_view('input/longtext',array('internalname' => 'body')); ?>
<p><?php echo elgg_echo("tags"); ?><br /> <?php echo elgg_view('input/tags',array('internalname' => 'tags')); ?></p>
<p><input type="submit" value="<?php echo elgg_echo('save'); ?>" /></p> </form>
![Page 11: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/11.jpg)
Contd…
• Create Save File$blogpost = new ElggObject();
$blogpost->title = get_input('title'); $blogpost->description = $description;
$blogpost->access_id = ACCESS_PUBLIC;
$blogpost->owner_guid = $_SESSION['user']->getGUID();
$blogpost->save();
$blogpost->tags = string_to_tag_array(get_input('tags'));
forward($blogpost->getURL());
• Display Blogrequire_once(dirname(dirname(dirname(__FILE__))).engine/start.php");
$body = list_entities('object','blog',0,10,false);
$body = elgg_view_layout('one_column', $body);
page_draw("Our Blog",$body);
![Page 12: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/12.jpg)
Business Opportunities in Elgg
• Education (Social E-learning)– Universities– Schools
• Social Intranet for organizations– Employee activities– Knowledge base– Company events
• Custom Social Networks
![Page 13: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/13.jpg)
Profile
![Page 14: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/14.jpg)
Groups
![Page 15: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/15.jpg)
Dashboard
![Page 16: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/16.jpg)
Files
![Page 17: Introduction to elgg. PHP based applications development at Mobicules](https://reader033.vdocuments.mx/reader033/viewer/2022061202/547ab9cdb4795963098b4b24/html5/thumbnails/17.jpg)
Thanks