cvs: presentations /slides/toolbox autoload-arrays.xml autoload.xml goals-library.xml me.xml

From: Date: Sat, 12 May 2007 22:24:46 +0000
Subject: cvs: presentations /slides/toolbox autoload-arrays.xml autoload.xml goals-library.xml me.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1401@lists.php.net to get a copy of this message
derick Sat May 12 22:24:46 2007 UTC Modified files: /presentations/slides/toolbox autoload-arrays.xml autoload.xml goals-library.xml me.xml Log: - Part two of the ezc talk. http://cvs.php.net/viewvc.cgi/presentations/slides/toolbox/autoload-arrays.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/autoload-arrays.xml diff -u presentations/slides/toolbox/autoload-arrays.xml:1.1 presentations/slides/toolbox/autoload-arrays.xml:1.2 --- presentations/slides/toolbox/autoload-arrays.xml:1.1 Wed Sep 14 16:39:05 2005 +++ presentations/slides/toolbox/autoload-arrays.xml Sat May 12 22:24:46 2007 @@ -5,19 +5,19 @@ <blurb>Using the classname's part as path elements makes ugly paths:</blurb> <example><![CDATA[ -ezcMailTransportMta => mail/transport/mta.php -ezcMailTransportSmtp => mail/transport/smtp.php -ezcMailException => mail/exception.php -ezcMailTransportSmtpException => mail/transport/smtp/exception.php +ezcMailParserSet => Mail/parser/set.php, +ezcMailSmtpTransport => Mail/smtp/transport.php, +ezcMailTransportOptions => Mail/transport/options.php, +ezcMailAddress => Mail/mail/address.php, ]]></example> <break/> <blurb>More logical names (mail_autoload.php):</blurb> <example><![CDATA[ -ezcMailTransportMta => transports/transport_mta.php -ezcMailTransportSmtp => transports/transport_smtp.php -ezcMailException => exceptions/mail_exception.php -ezcMailTransportSmtpException => exceptions/transport_smtp_exception.php +ezcMailParserSet => Mail/parser/interfaces/parser_set.php, +ezcMailSmtpTransport => Mail/transports/smtp/transport_smtp.php, +ezcMailTransportOptions => Mail/options/transport_options.php, +ezcMailAddress => Mail/structs/mail_address.php, ]]></example> <break lines="2"/> <blurb>Some problems:</blurb> http://cvs.php.net/viewvc.cgi/presentations/slides/toolbox/autoload.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/autoload.xml diff -u presentations/slides/toolbox/autoload.xml:1.1 presentations/slides/toolbox/autoload.xml:1.2 --- presentations/slides/toolbox/autoload.xml:1.1 Wed Sep 14 16:39:05 2005 +++ presentations/slides/toolbox/autoload.xml Sat May 12 22:24:46 2007 @@ -3,16 +3,14 @@ <title>Autoload</title> <example result="1"><![CDATA[<?php +require 'ezc/Base/base.php'; function __autoload( $className ) { - $path = preg_replace( '/([A-Z])/', '/\\1', $className ); - $path = strtolower( $path ); - $path = str_replace( 'ezc/', '', $path ) . '.php'; - echo "Loading $path...\n"; - @include_once $path; + ezcBase::autoload( $className ); } -$a = new ezcMailSmtpTransport; +$a = new ezcMailSmtpTransport( 'localhost' ); +var_dump( $a ); ?>]]></example> </slide> http://cvs.php.net/viewvc.cgi/presentations/slides/toolbox/goals-library.xml?r1=1.7&r2=1.8&diff_format=u Index: presentations/slides/toolbox/goals-library.xml diff -u presentations/slides/toolbox/goals-library.xml:1.7 presentations/slides/toolbox/goals-library.xml:1.8 --- presentations/slides/toolbox/goals-library.xml:1.7 Wed Nov 29 20:22:58 2006 +++ presentations/slides/toolbox/goals-library.xml Sat May 12 22:24:46 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <slide fontsize="6em"> - <title>eZ components Goals</title> + <title>eZ Components Goals</title> <list> <bullet>Provide a solid platform for PHP application development</bullet> http://cvs.php.net/viewvc.cgi/presentations/slides/toolbox/me.xml?r1=1.3&r2=1.4&diff_format=u Index: presentations/slides/toolbox/me.xml diff -u presentations/slides/toolbox/me.xml:1.3 presentations/slides/toolbox/me.xml:1.4 --- presentations/slides/toolbox/me.xml:1.3 Fri May 5 14:13:54 2006 +++ presentations/slides/toolbox/me.xml Sat May 12 22:24:46 2007 @@ -3,9 +3,9 @@ <title>About Me</title> <list> - <bullet>Dutchie living in Norway</bullet> - <bullet>eZ systems A.S.</bullet> - <bullet>eZ components project lead</bullet> + <bullet>Dutchman living in Norway</bullet> + <bullet>eZ Systems A.S.</bullet> + <bullet>eZ Components project lead</bullet> </list> <list>

« previous php.pres (#1401) next »