Lampada Php Conference Brasil 2007 Palestra

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Lampada Php Conference Brasil 2007 Palestra - Presentation Transcript

    1. OOP, MVC, Ajax e PHP5 na prática com SugarCRM 5.0 David O’Keefe, André Lopes – Lampada Global Services
    2. Solutions instead of Code
      • Lampada Global Services desenvolve soluções em código aberto para clientes em toda parte do mundo.
      • Nossos clientes não querem comprar código, querem as soluções dos seus problemas.
      • As melhores soluções são:
        • Rápida
        • Económica
        • Robusta
        • Personalizável
        • Extensível
        • Atualizável
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    3. OOP e MVC
      • OOP - Programação Orientada a Objetos
        • Paradigma de análise, projeto e programação
        • Baseado na composição e interação entre unidades de software
      • MVC - Model-view-controller
        • Padrão de arquitetura de software que separa os dados (Model) da interface (View) e a Lógica (Controller).
        • 3 camadas:
          • Apresentação (interface)
            • View e Controller, separadas nesta camada
          • Domínio (business logic)
            • Model
              • Acesso a dados (data access), a “3 0 camada” separada mas implicitamente junta com o Model
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    4. Por que o SugarCRM foi feita em PHP?
      • Propósito principal é de implementar soluções web velozes, simples e eficientes.
      • Características:
        • Velocidade e robustez
        • Estruturado e orientação a objeto
        • Portabilidade - independência de plataforma
        • Tipagem fraca
        • Sintaxe similar a C/C++ e PERL
      • Mais rápida e económica que a Java
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    5. Frameworks: Build software or write code?
      • Reinventar a roda é divertido !
        • Zend Framework, Phrame, CakePHP, Symfony, WACT, ZooP, CodeIgniter
        • 40+ frameworks em PHP
      • Mais consistente
      • Mais rápido de protótipo a produto
      • Mais configuração e pesquisa
      • Menos criação de código
      • SugarCRM é um framework
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    6. SugarCRM Framework
      • Model-View-Controller (MVC)
        • /include/MVC
      • Banco de dados
        • /data/SugarBean.php
          • $this->db = &PearDatabase::getInstance();
          • $this->dbManager = &DBManagerFactory::getInstance();
      • Internacionalização e Localização
        • /include/language
        • /modules/[MyModule]/language
        • /include/Localization/Localization.php
      • Autenticação, Autorização e Sessões
        • /modules/User/Authentication
        • /modules/ACL
      • AJAX, Webservices, RSS, etc.
        • Dashlets, NuSOAP, WICK (input completion), DOMIT RSS
      • E-mail, Formatos (ex. PDF) e Busca
        • PHPMailer, PHP PDF, FCKeditor
      • Infra-estrutura base
        • /include
        • /custom
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    7. SugarCRM: MVC – Control !
      • <?PHP
      • require_once('include/MVC/Controller/SugarController.php');
      • class demo_MyModuleController extends SugarController {
      • function demo_MyModuleController(){
      • parent::SugarController();
      • }
      • function manipulate_model() {
      • $this->bean->message = “Hello World !”;
      • }
      • }
      • ?>
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    8. SugarCRM: MVC – ControllerFactory
      • function getController($module){
      • $class = ucfirst($module).'Controller';
      • if(file_exists('custom/modules/'.$module.'/controller.php')){
      • require_once('custom/modules/'.$module.'/controller.php');
      • if(class_exists($class))$controller = new $class();
      • }
      • elseif(file_exists('modules/'.$module.'/controller.php')){
      • require_once('modules/'.$module.'/controller.php');
      • if(class_exists($class))$controller = new $class();
      • }
      • else {
      • $controller = new SugarController();
      • }
      • //set the module
      • $controller->module = $module;
      • return $controller;
      • }
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    9. SugarCRM MVC
      • index.php
        • $app = new SugarApplication();
      • includeMVCSugarApplication.php
        • $this->controller = ControllerFactory::getController($module);
      • includeMVCControllerSugarController.php
      • includeMVCViewviewsview.edit.php
      • includeEditViewEditView2.php
      • É uma arquitetura orientada a objetos…
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    10. SugarCRM Orientação a Objeto
      • modulesndl_ComponentFieldsndl_ComponentFields_sugar.php
      • modulesndl_ComponentFieldsndl_ComponentFields.php
      • includeSugarObjects emplatesasicBasic.php
      • dataSugarBean.php
      • includedatabasePearDatabase.php
      • includedatabaseMysqliManager.php
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    11. SugarCRM QuickSearch AJAX
      • [sugarcrm]modulesndl_BundleRequirementsmetadataeditviewdefs.php
      • [sugarcrm]customapplicationExtLanguageen_us.lang.ext.php
      • [sugarcrm]modulesndl_BundleRequirementsvardefs.php
      • AJAX: [sugarcrm]includeSugarFieldsFieldsParentSugarFieldParent.php
      • AJAX: [sugarcrm]includeSugarFieldsFieldsParentEditView.tpl
      • AJAX: [sugarcrm]jssourcesrc_filesincludejavascriptquicksearch.js
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.
    12. Sobre a Lampada Global Services
      • Desde 2003, oferecemos soluções em PHP e código aberto.
      • Mais que 60 projetos no Brasil e afora.
      • SugarCRM Silver Partner, o único no Brasil.
      • www.lampadaglobal.com
      • Estamos contratando !
      PHP Conference Brasil 2007 ©2007 Lampada Global Services. All rights reserved.

    + David O'KeefeDavid O'Keefe, 2 years ago

    custom

    714 views, 2 favs, 0 embeds more stats

    Palestra sobre MVC e PHP no sistema SugarCRM.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 714
      • 714 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories