Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> EE dla PHP5
MStaniszczak
post
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 1
Dołączył: 3.10.2004

Ostrzeżenie: (0%)
-----


Co tu sie rozpisywać;-)
http://www.carthag.org/about.php

Pozdrawiam
Marcin Staniszczak
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
dag
post
Post #2





Grupa: Zarejestrowani
Postów: 180
Pomógł: 0
Dołączył: 24.12.2003

Ostrzeżenie: (0%)
-----


HelloWorldCBM.php
  1. <?php
  2. Carthag :: package('com.solarix.eas.tests');
  3.  
  4. Carthag :: import('com.solarix.eas.EASObject');
  5.  
  6. class HelloWorldEAS extends EASObject {
  7. public function easRun() {
  8. return 'Hello world';
  9. }
  10.  
  11. public function deploy() {
  12. }
  13.  
  14. public function undeploy() {
  15. }
  16.  
  17. public function redeploy() {
  18. }
  19. }
  20. ?>


Test.php
  1. <?php
  2. Carthag :: package('com.solarix.eas.tests');
  3.  
  4. Carthag :: import('carthag.dev.unit.textui.TestRunner');
  5.  
  6. class Tests extends Object {
  7. public function main($args) {
  8. Carthag :: instance()->getClassLoader()->addClassPath(realpath('.'));
  9. Carthag :: import('com.solarix.eas.tests.EASTestSuite');
  10. TestRunner :: run(EASTestSuite :: suite());
  11. }
  12. }
  13. ?>


Są to wycinki z kilku testowych plików zawartych w dystrybucji.

Jest to EE dla php ;-) czyli jakby otoczka czystego php. Tak samo jak J2EE (choć teraz to raczej po ostatnich planach marketingowców z SUN: Java EE 5 (JEE) ). Zestaw bibliotek etc.

W pierwszym przykładzie widzimy coś ala JAVA: import( notacja kropkowa ) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)

Hmm muszę się przyjrzeć temu bliżej (IMG:http://forum.php.pl/style_emoticons/default/aarambo.gif) Najpierw muszę tylko znaleźć czas (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) Mam wakacje i teoretycznie powinienem mieć więcej czasu a tu bach....i nic z tego - ale takto jest jak się śpi do 11 (IMG:http://forum.php.pl/style_emoticons/default/Rkingsmiley.png)


Znalazłem na jednym z blogów:
Cytat
I've released most of the components of php 5 iConnect architecture, based on my php 5 Carthag platform.

This architecture is similar in many ways to J2EE and offers: a platform, an enterprise application server (like EJB), a web application server (like Tomcat) and a portal server. Its runtime is based on php 5 and Apache.


Ten post edytował dag 3.07.2005, 11:24:44
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 26.12.2025 - 17:18