cvs: presentations /slides/ezc .cvsignore all_your_base.png archive-logo.jpg archive.php cache.php components.png configuration-manager.php
configuration-read-write.php consoletools-option.php consoletools-progressbar.php consoletools-table.php consoletools-table.png
database-query-abstraction.php database.php eventlog.php example-archive.xml example-cache.xml example-configuration-manager.xml
example-configuration-read-write.xml example-consoletools-options.xml example-consoletools-progressbar.xml example-consoletools-table.xml
example-database-instance.xml example-database-query.xml example-eventlog.xml example-execution.xml example-imageanalysis.xml
example-imageconversion.xml example-mail.xml example-persistentobject.xml example-userinput.xml execution.php ezc-setup.php future.xml
imageanalysis.php imageconversion.php install-download.xml install-pear.xml mail.php moon.jpg nacreous-grey.jpg nacreous-small.jpg nacreous.jpg
overview.xml persistent-object.php progr! essbar.gif questions.xml test-archive.zip title-ezc.xml userinput.php /slides/ezc/cfg example.ini
example.php example2.ini /slides/i18nl10n when.xml /slides/perf ezp.png /slides/toolbox documentation.xml goals-library.xml goals-process.xml
tie-in.png

From: Date: Wed, 08 Feb 2006 08:42:21 +0000
Subject: cvs: presentations /slides/ezc .cvsignore all_your_base.png archive-logo.jpg archive.php cache.php components.png configuration-manager.php
configuration-read-write.php consoletools-option.php consoletools-progressbar.php consoletools-table.php consoletools-table.png
database-query-abstraction.php database.php eventlog.php example-archive.xml example-cache.xml example-configuration-manager.xml
example-configuration-read-write.xml example-consoletools-options.xml example-consoletools-progressbar.xml example-consoletools-table.xml
example-database-instance.xml example-database-query.xml example-eventlog.xml example-execution.xml example-imageanalysis.xml
example-imageconversion.xml example-mail.xml example-persistentobject.xml example-userinput.xml execution.php ezc-setup.php future.xml
imageanalysis.php imageconversion.php install-download.xml install-pear.xml mail.php moon.jpg nacreous-grey.jpg nacreous-small.jpg nacreous.jpg
overview.xml persistent-object.php progr! essbar.gif questions.xml test-archive.zip title-ezc.xml userinput.php /slides/ezc/cfg example.ini
example.php example2.ini /slides/i18nl10n when.xml /slides/perf ezp.png /slides/toolbox documentation.xml goals-library.xml goals-process.xml
tie-in.png
Groups: php.pres 
Request: Send a blank email to pres+get-1253@lists.php.net to get a copy of this message
derick Wed Feb 8 08:42:21 2006 UTC Added files: /presentations/slides/ezc .cvsignore all_your_base.png archive-logo.jpg archive.php cache.php components.png configuration-manager.php configuration-read-write.php consoletools-option.php consoletools-progressbar.php consoletools-table.php consoletools-table.png database-query-abstraction.php database.php eventlog.php example-archive.xml example-cache.xml example-configuration-manager.xml example-configuration-read-write.xml example-consoletools-options.xml example-consoletools-progressbar.xml example-consoletools-table.xml example-database-instance.xml example-database-query.xml example-eventlog.xml example-execution.xml example-imageanalysis.xml example-imageconversion.xml example-mail.xml example-persistentobject.xml example-userinput.xml execution.php ezc-setup.php future.xml imageanalysis.php imageconversion.php install-download.xml install-pear.xml mail.php moon.jpg nacreous-grey.jpg nacreous-small.jpg nacreous.jpg overview.xml persistent-object.php progressbar.gif questions.xml test-archive.zip title-ezc.xml userinput.php /presentations/slides/ezc/cfg example.ini example.php example2.ini Modified files: /presentations/slides/i18nl10n when.xml /presentations/slides/perf ezp.png /presentations/slides/toolbox documentation.xml goals-library.xml goals-process.xml tie-in.png Log: - RAD with PHP talk.

http://cvs.php.net/viewcvs.cgi/presentations/slides/i18nl10n/when.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/i18nl10n/when.xml diff -u presentations/slides/i18nl10n/when.xml:1.1 presentations/slides/i18nl10n/when.xml:1.2 --- presentations/slides/i18nl10n/when.xml:1.1 Mon Sep 12 10:01:32 2005 +++ presentations/slides/i18nl10n/when.xml Wed Feb 8 08:42:21 2006 @@ -5,6 +5,6 @@ <list> <bullet>When it is ready.</bullet> <bullet>Development version is in CVS.</bullet> - <bullet>Release: hopefully this year.</bullet> + <bullet>Release: hopefully next year.</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/perf/ezp.png?r1=1.4&r2=1.5&diff_format=u Index: presentations/slides/perf/ezp.png http://cvs.php.net/viewcvs.cgi/presentations/slides/toolbox/documentation.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/documentation.xml diff -u presentations/slides/toolbox/documentation.xml:1.1 presentations/slides/toolbox/documentation.xml:1.2 --- presentations/slides/toolbox/documentation.xml:1.1 Wed Sep 14 16:39:05 2005 +++ presentations/slides/toolbox/documentation.xml Wed Feb 8 08:42:21 2006 @@ -7,11 +7,11 @@ <bullet>Makes a library usable</bullet> <bullet>API documentation</bullet> <bullet>Examples</bullet> - <bullet>Test Cases</bullet> + <bullet>Tutorials</bullet> </list> <break lines="2"/> - <blurb>PHP Documentator:</blurb> + <blurb>PHP Documentor:</blurb> <list> <bullet>Made for PHP</bullet> <bullet>In use by PEAR</bullet> http://cvs.php.net/viewcvs.cgi/presentations/slides/toolbox/goals-library.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/goals-library.xml diff -u presentations/slides/toolbox/goals-library.xml:1.1 presentations/slides/toolbox/goals-library.xml:1.2 --- presentations/slides/toolbox/goals-library.xml:1.1 Wed Sep 14 16:39:05 2005 +++ presentations/slides/toolbox/goals-library.xml Wed Feb 8 08:42:21 2006 @@ -7,6 +7,7 @@ <bullet>Clean and simple API</bullet> <bullet>Keep backward compatibility for longer periods of time</bullet> <bullet>Stable and few regressions</bullet> + <bullet>Clean IP, Open Source friendly</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/toolbox/goals-process.xml?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/goals-process.xml diff -u presentations/slides/toolbox/goals-process.xml:1.1 presentations/slides/toolbox/goals-process.xml:1.2 --- presentations/slides/toolbox/goals-process.xml:1.1 Wed Sep 14 16:39:05 2005 +++ presentations/slides/toolbox/goals-process.xml Wed Feb 8 08:42:21 2006 @@ -4,10 +4,10 @@ <list> <bullet>Move to PHP 5</bullet> - <bullet>Thoroughly plan the product to get a top notch API for the library.</bullet> - <bullet>Thoroughly tested. All code should be covered by unit tests PRIOR to implementation.</bullet> + <bullet>Thoroughly plan the product to get a top notch API for the library</bullet> + <bullet>Thoroughly tested. All code should be covered by unit tests PRIOR to implementation</bullet> <bullet>Make sure we keep the product open enough for future development</bullet> - <bullet>Do proper documentation during the development.</bullet> + <bullet>Do proper documentation during the development</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/toolbox/tie-in.png?r1=1.1&r2=1.2&diff_format=u Index: presentations/slides/toolbox/tie-in.png http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/.cvsignore?view=markup&rev=1.1 Index: presentations/slides/ezc/.cvsignore +++ presentations/slides/ezc/.cvsignore *.swp http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/archive.php?view=markup&rev=1.1 Index: presentations/slides/ezc/archive.php +++ presentations/slides/ezc/archive.php <?php require 'ezc-setup.php'; $archive = ezcArchive::open( dirname( __FILE__ ) . '/test-archive.zip' ); foreach( $archive as $entry ) { if ( $entry->getPath() == 'archive-logo.jpg' ) { $dir = dirname( __FILE__ ); echo "Extracting {$entry->getPath()} to $dir.<br/><br/>\n"; $archive->extractCurrent( $dir ); } echo $entry, "\n"; } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/cache.php?view=markup&rev=1.1 Index: presentations/slides/ezc/cache.php +++ presentations/slides/ezc/cache.php <?php require 'ezc-setup.php'; @mkdir( '/tmp/temp-location' ); ezcCacheManager::createCache( 'identifier', '/tmp/temp-location', 'ezcCacheStorageFileEvalArray', array( 'ttl' => 30 ) ); $cache = ezcCacheManager::getCache( 'identifier' ); $myId = 'unique_id_1'; if ( ( $data = $cache->restore( $myId ) ) === false ) { $data = "Plain cache stored on " . date( 'Y-m-d, H:i:s' ); $cache->store( $myId, $data ); } echo $data; http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/configuration-manager.php?view=markup&rev=1.1 Index: presentations/slides/ezc/configuration-manager.php +++ presentations/slides/ezc/configuration-manager.php <?php require 'ezc-setup.php'; $cfg = ezcConfigurationManager::getInstance(); $cfg->init( 'ezcConfigurationIniReader', dirname( __FILE__ ). '/cfg' ); $pw = $cfg->getSetting( 'example', 'db', 'password' ); echo "The password is '$pw'.\n"; ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/configuration-read-write.php?view=markup&rev=1.1 Index: presentations/slides/ezc/configuration-read-write.php +++ presentations/slides/ezc/configuration-read-write.php <?php require 'ezc-setup.php'; $reader = new ezcConfigurationIniReader(); $reader->init( dirname( __FILE__ ). '/cfg', 'example2' ); // Validation $result = $reader->validate(); foreach ( $result->getResultList() as $resultItem ) { echo htmlspecialchars( basename( $resultItem->file ) . ":" . $resultItem->line . ":" . $resultItem->column . ":" . " " . $resultItem->details . "\n" ); } // Reading $reader->init( dirname( __FILE__ ). '/cfg', 'example' ); $cfg = $reader->load(); // Writing $writer = new ezcConfigurationArrayWriter(); $writer->init( dirname( __FILE__ ). '/cfg', 'example', $cfg ); $writer->save(); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/consoletools-option.php?view=markup&rev=1.1 Index: presentations/slides/ezc/consoletools-option.php +++ presentations/slides/ezc/consoletools-option.php <?php require 'ezc-setup.php'; $optionHandler = new ezcConsoleInput(); $file = new ezcConsoleOption( 'f', 'file', ezcConsoleInput::TYPE_STRING ); $file->mandatory = true; $optionHandler->registerOption( $file ); try { $optionHandler->process(); } catch ( ezcConsoleException $e ) { die( $e->getMessage() ); } echo "Processing file: ", $optionHandler->getOption( 'f' )->value, "\n"; ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/consoletools-progressbar.php?view=markup&rev=1.1 Index: presentations/slides/ezc/consoletools-progressbar.php +++ presentations/slides/ezc/consoletools-progressbar.php <?php require 'ezc-setup.php'; $max = 23; $output = new ezcConsoleOutput; $output->formats->bar->color = 'red'; $output->formats->bar->style = array( 'bold' ); $options = array( 'emptyChar' => ' ', 'barChar' => '-', 'formatString' => '%act% / %max% [' . $output->formatText( '%bar%', 'bar' ). '] %fraction%%', ); $progress = new ezcConsoleProgressbar( $output, $max, $options ); for ( $i = 0; $i < $max; $i++ ) { usleep( 20000 ); $progress->advance(); } $progress->finish(); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/consoletools-table.php?view=markup&rev=1.1 Index: presentations/slides/ezc/consoletools-table.php +++ presentations/slides/ezc/consoletools-table.php <?php require 'ezc-setup.php'; $out = new ezcConsoleOutput; $out->formats->headline->color = 'red'; $out->formats->headline->style = array( 'bold' ); $table = new ezcConsoleTable( $out, 60 ); $table[0]->format = 'headline'; $table[0]->borderFormat = 'headline'; $table[0][0]->content = 'Headline 1'; $table[0][1]->content = 'Headline 2'; $table[1][0]->content = "The next cell will wrap:"; $table[1][1]->content = <<<END If there is a lot of text in a specific cell then the ezcConsoleTable will correctly wrap around. END; $table[1][1]->align = ezcConsoleTable::ALIGN_RIGHT; $table->outputTable(); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/database-query-abstraction.php?view=markup&rev=1.1 Index: presentations/slides/ezc/database-query-abstraction.php +++ presentations/slides/ezc/database-query-abstraction.php <?php require 'ezc-setup.php'; $db = ezcDbFactory::create( 'mysql://root@localhost/geolocation' ); $sq = $db->createSelectQuery(); $stmt = $sq->select( 'name', 'country', 'lat', 'lon' ) ->from( 'city' ) ->where( $sq->expr->like( 'normalized_name', $sq->bindValue( 'oslo%' ) ) ) ->orderBy( 'country', 'name' ) ->prepare(); $stmt->execute(); foreach ( $stmt as $entry ) { list( $name, $country, $lat, $lon ) = $entry; printf( '%s, %s is @ %.2f%s %.2f%s<br/>', $name, $country, abs( $lat ), ($lat > 0 ? "N" :"S" ), abs( $lon ), ( $lon > 0 ? "E" : "W" ) ); } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/database.php?view=markup&rev=1.1 Index: presentations/slides/ezc/database.php +++ presentations/slides/ezc/database.php <?php require 'ezc-setup.php'; $db1 = ezcDbFactory::create( 'mysql://root@localhost/ezc' ); ezcDbInstance::set( $db1, 'ezc' ); $trunk = ezcDbFactory::create( 'mysql://root@localhost/eztrunk' ); ezcDbInstance::set( $trunk, 'ezt' ); $db = ezcDbInstance::get( 'ezt' ); echo $db->getName(); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/eventlog.php?view=markup&rev=1.1 Index: presentations/slides/ezc/eventlog.php +++ presentations/slides/ezc/eventlog.php <?php require 'ezc-setup.php'; $log = ezcLog::getInstance(); $log->source = $log->category = NULL; // Create writers $warningWriter = new ezcLogUnixFileWriter( "/tmp", "ezc-pres-warning.log", 128 ); $errorWriter = new ezcLogUnixFileWriter( "/tmp", "ezc-pres-error.log", 256 ); // Create filters $warningFilter = new ezcLogFilter; $warningFilter->severity = ezcLog::WARNING; $errorFilter = new ezcLogFilter; $errorFilter->severity = ezcLog::ERROR; $log->getmapper()->appendRule( new ezcLogFilterRule( $warningFilter, $warningWriter, true ) ); $log->getmapper()->appendRule( new ezcLogFilterRule( $errorFilter, $errorWriter, true ) ); // Log messages $log->log( "Oops, this was unexpected.", ezcLog::WARNING ); $log->log( "Oh no, major problem!", ezcLog::ERROR, array( "category" => "SQL" ) ); echo '<font size="6">'; echo 'Warnings<br/>', nl2br( htmlspecialchars( file_get_contents( '/tmp/ezc-pres-warning.log' ) ) ), "<br/>"; echo 'Errors<br/>', nl2br( htmlspecialchars( file_get_contents( '/tmp/ezc-pres-error.log' ) ) ); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-archive.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-archive.xml +++ presentations/slides/ezc/example-archive.xml <slide> <title>Archive</title> <example filename='archive.php' result="1"/> <image align="center" filename="archive-logo.jpg" pdf-scale="0.8" y-offset="4"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-cache.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-cache.xml +++ presentations/slides/ezc/example-cache.xml <slide> <title>Cache</title> <example filename='cache.php' result="1"/> <list> <bullet>*FilePlain*: Raw data</bullet> <bullet>*FileArray*: var_export() data, include to restore</bullet> <bullet>*FileEvalArray*: var_export() data, eval() to restore</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-configuration-manager.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-configuration-manager.xml +++ presentations/slides/ezc/example-configuration-manager.xml <slide> <title>Configuration</title> <subtitle>Manager</subtitle> <example filename='configuration-manager.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-configuration-read-write.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-configuration-read-write.xml +++ presentations/slides/ezc/example-configuration-read-write.xml <slide> <title>Configuration</title> <subtitle>Read/Write</subtitle> <example filename='configuration-read-write.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-consoletools-options.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-consoletools-options.xml +++ presentations/slides/ezc/example-consoletools-options.xml <slide> <title>ConsoleTools</title> <subtitle>Script Arguments</subtitle> <example filename='consoletools-option.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-consoletools-progressbar.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-consoletools-progressbar.xml +++ presentations/slides/ezc/example-consoletools-progressbar.xml <?xml version="1.0" encoding="utf-8"?> <slide> <title>ConsoleTools</title> <subtitle>Progressbar</subtitle> <example filename='consoletools-progressbar.php'/> <break/> <image align="center" filename="progressbar.gif" pdf-scale="0.8" y-offset="4"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-consoletools-table.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-consoletools-table.xml +++ presentations/slides/ezc/example-consoletools-table.xml <slide> <title>ConsoleTools</title> <subtitle>Table</subtitle> <example filename='consoletools-table.php'/> <break/> <image align="center" filename="consoletools-table.png" pdf-scale="0.8" y-offset="4"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-database-instance.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-database-instance.xml +++ presentations/slides/ezc/example-database-instance.xml <slide> <title>Database</title> <subtitle>Handlers and Instances</subtitle> <blurb>Supported Handlers:</blurb> <list> <bullet>MySQL</bullet> <bullet>PostGreSQL</bullet> <bullet>Oracle</bullet> <bullet>SQLite</bullet> </list> <blurb>Using Instances:</blurb> <example filename='database.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-database-query.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-database-query.xml +++ presentations/slides/ezc/example-database-query.xml <slide> <title>Database</title> <subtitle>Query Abstraction</subtitle> <example encoding="iso-8859-1" filename='database-query-abstraction.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-eventlog.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-eventlog.xml +++ presentations/slides/ezc/example-eventlog.xml <slide> <title>EventLog</title> <example filename='eventlog.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-execution.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-execution.xml +++ presentations/slides/ezc/example-execution.xml <slide> <title>Execution</title> <example filename='execution.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-imageanalysis.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-imageanalysis.xml +++ presentations/slides/ezc/example-imageanalysis.xml <slide> <title>ImageAnalysis</title> <example filename='imageanalysis.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-imageconversion.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-imageconversion.xml +++ presentations/slides/ezc/example-imageconversion.xml <slide> <title>ImageConversion</title> <example filename='imageconversion.php'/> <break/> <blurb>Result:</blurb> <image filename='nacreous-small.jpg'/> <image filename='nacreous-grey.jpg'/> <break lines="20"/> <blurb>&#160;</blurb> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-mail.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-mail.xml +++ presentations/slides/ezc/example-mail.xml <slide> <title>Mail</title> <example filename='mail.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-persistentobject.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-persistentobject.xml +++ presentations/slides/ezc/example-persistentobject.xml <slide> <title>Persistent Object</title> <example encoding="iso-8859-1" filename='persistent-object.php'/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/example-userinput.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/example-userinput.xml +++ presentations/slides/ezc/example-userinput.xml <slide> <title>UserInput</title> <example filename='userinput.php' result="1"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/execution.php?view=markup&rev=1.1 Index: presentations/slides/ezc/execution.php +++ presentations/slides/ezc/execution.php <?php require 'ezc-setup.php'; class myExecutionHandler extends ezcExecutionBasicErrorHandler { public static function onError( Exception $exception = NULL ) { echo '<div class="shadow" style="margin: 1em 4em 0.8em 3em;"><div class="output" style="font-size: 1.8em; margin: -0.55555555555556em 0 0 -0.55555555555556em; background: #eeee33;">'; parent::onError( $exception ); } } ezcExecution::init( 'myExecutionHandler' ); //ezcExecution::cleanExit(); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/ezc-setup.php?view=markup&rev=1.1 Index: presentations/slides/ezc/ezc-setup.php +++ presentations/slides/ezc/ezc-setup.php <?php require 'ezc/Base/base.php'; function __autoload( $className ) { ezcBase::autoload( $className ); } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/future.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/future.xml +++ presentations/slides/ezc/future.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide> <title>What's Next?</title> <subtitle>Additions for eZ components 1.1</subtitle> <blurb>New components:</blurb> <list> <bullet>*Template*: Well, uh, templating</bullet> <bullet>*DatabaseSchema*: DDL manipulation</bullet> <bullet>*Feed*: RSS/ATOM feeds</bullet> <bullet>*Mail*: Parsing mail</bullet> <bullet>*PersistentObject*: Integration with Database Schema</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/imageanalysis.php?view=markup&rev=1.1 Index: presentations/slides/ezc/imageanalysis.php +++ presentations/slides/ezc/imageanalysis.php <?php require 'ezc-setup.php'; $image = new ezcImageAnalyzer( dirname( __FILE__ ) . '/moon.jpg' ); if ( in_array( $image->mime, array( 'image/tiff', 'image/jpeg' ) ) ) { $date = date( DATE_RFC822, $image->data->date ); $exif = $image->data->exif['EXIF']; $shutterSpeedArray = split( '/', $exif['ExposureTime'] ); $shutterSpeed = "1/" . $shutterSpeedArray[1] / $shutterSpeedArray[0] . " sec"; $apertureArray = split( '/', $exif['FNumber'] ); $aperture = "F" . round( $apertureArray[0] / $apertureArray[1], 1 ); $focalLengthArray = split( "/", $exif['FocalLength'] ); $focalLength = round( $focalLengthArray[0] / $focalLengthArray[1], 2 ) . " mm"; print <<<OUTPUTEND <dl> <di>Photo taken on:</di><dd>$date</dd> <di>Shutter speed:</di><dd>$shutterSpeed</dd> <di>Aperture:</di><dd>$aperture</dd> <di>Focal length:</di><dd>$focalLength</dd> </dl> OUTPUTEND; } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/imageconversion.php?view=markup&rev=1.1 Index: presentations/slides/ezc/imageconversion.php +++ presentations/slides/ezc/imageconversion.php <?php require 'ezc-setup.php'; $dir = dirname( __FILE__ ); // Setup $filters = array(); $settings = new ezcImageConverterSettings( array( new ezcImageHandlerSettings( 'GD', 'ezcImageGdHandler' ) ) ); $converter = new ezcImageConverter( $settings ); // Create transformations $filters[] = new ezcImageFilter( 'scale', array( 'width' => 320, 'height' => 240, 'direction' => ezcImageGeometryFilters::SCALE_DOWN, ) ); $converter->createTransformation( 'preview', $filters, array( 'image/jpeg' ) ); $filters[] = new ezcImageFilter( 'colorspace', array( 'space' => ezcImageColorspaceFilters::COLORSPACE_GREY ) ); $converter->createTransformation( 'prevgrey', $filters, array( 'image/jpeg' ) ); // Apply transformations $converter->transform( 'preview', "$dir/nacreous.jpg", "$dir/nacreous-small.jpg" ); $converter->transform( 'prevgrey', "$dir/nacreous.jpg", "$dir/nacreous-grey.jpg" ); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/install-download.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/install-download.xml +++ presentations/slides/ezc/install-download.xml <?xml version="1.0" encoding="utf-8"?> <slide> <title>Installation and Setup</title> <subtitle>Download bundle</subtitle> <blurb>Installation:</blurb> <example><![CDATA[wget http://ez.no/downloads/ezcomponents-1.0.tar.bz2 tar -xjf ezcomponents-1.0.tar.bz2 pwd]]></example> <break lines="3"/> <blurb>Setup:</blurb> <example result='1'><![CDATA[<?php ini_set( 'include_path', '/tmp/ezcomponents-1.0:.' ); require 'Base/src/base.php'; function __autoload( $className ) { ezcBase::autoload( $className ); } ezcBase::checkDependency( 'Test', ezcBase::DEP_PHP_VERSION, '5.1.3' ); ?>]]></example> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/install-pear.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/install-pear.xml +++ presentations/slides/ezc/install-pear.xml <?xml version="1.0" encoding="utf-8"?> <slide> <title>Installation and Setup</title> <subtitle>PEAR Installer</subtitle> <blurb>Installation:</blurb> <example><![CDATA[pear channel-discover components.ez.no pear remote-list -c ezc pear install ezc/ezcomponents]]></example> <break lines="3"/> <blurb>Setup:</blurb> <example result='1'><![CDATA[<?php require 'ezc/Base/base.php'; function __autoload( $className ) { ezcBase::autoload( $className ); } ezcBase::checkDependency( 'Test', ezcBase::DEP_PHP_VERSION, '5.1.3' ); ?>]]></example> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/mail.php?view=markup&rev=1.1 Index: presentations/slides/ezc/mail.php +++ presentations/slides/ezc/mail.php <?php require 'ezc-setup.php'; $dir = dirname( __FILE__ ); $mail = new ezcMailComposer(); $mail->from = new ezcMailAddress( 'john@doe.com', 'John Doe' ); $mail->addTo( new ezcMailAddress( 'dr@ez.no', 'Derick Rethans' ) ); $mail->subject = "Example of an HTML email with attachments"; $mail->plainText = "Here is the text version of the mail. This is displayed if the client can not understand HTML"; $mail->htmlText = <<<ENDHTML <html> Here is the HTML version of your mail with an image: <img src='file://$dir/consoletools-table.png'/> </html> ENDHTML; $mail->addAttachment( "$dir/mail.php" ); $mail->build(); echo "<pre><font size='5'>", htmlspecialchars( $mail->generateHeaders() . $mail->generateBody() ); $transport = new ezcMailTransportSmtp( 'localhost', null, null, 2525 ); //$transport->send( $mail ); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/overview.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/overview.xml +++ presentations/slides/ezc/overview.xml <?xml version="1.0" encoding="utf-8"?> <slide fontsize="6em"> <title>Overview</title> <image align="center" filename="all_your_base.png" pdf-scale="0.8" y-offset="4"/> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/persistent-object.php?view=markup&rev=1.1 Index: presentations/slides/ezc/persistent-object.php +++ presentations/slides/ezc/persistent-object.php <?php require 'ezc-setup.php'; $session = new ezcPersistentSession( ezcDbInstance::get(), new ezcPersistentCodeManager( "path/to/definitions" ) ); // Creating New Objects $object = new City(); $object->normalized_name = "dieren"; $object->name = 'Dieren'; $object->country = 'NL'; $session->save( $object ); // Finding Objects $q = $session->createFindQuery( 'City' ); $q->where( $sq->expr->like( 'name', $sq->bindValue( 'oslo%' ) ) ) ->orderBy( 'country', 'name' ) ->limit( 10 ); $objects = $session->findIterator( $q, 'City' ); foreach ( $objects as $object ) { // ... } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/questions.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/questions.xml +++ presentations/slides/ezc/questions.xml <?xml version="1.0" encoding="iso-8859-1"?> <slide> <title>Questions and Resources</title> <blurb>Questions anybody?</blurb> <break lines="5"/> <blurb>Resources:</blurb> <list> <bullet>*Download*: http://ez.no/download/ez_components</bullet> <bullet>*Documentation*: http://ez.no/doc/components/overview</bullet> <bullet>*Mailinglist*: http://lists.ez.no/mailman/listinfo/components</bullet> </list> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/test-archive.zip?view=markup&rev=1.1 Index: presentations/slides/ezc/test-archive.zip +++ presentations/slides/ezc/test-archive.zip PK ÄÀ1Xߍ “´‡aö0ï[ª~~Œø@†fûUú§%'=ã/‹ú¾vcè?-ZûZùŸ–ýJ[¿*9„B‘h?Xèß+3ºþo4¿7Áÿ¿o¿ƒlX¸/ ýóiîwù?ǯq^G»³’(,4ôW Ë_¾ÃlöpŸŸÙð¿ÖúSÌÃa?:@þŒüÕ÷¿Ëßm¿òþÙ¯- `eb"éˆÄ@ýýa¾>~¦_;CHô,4œÑ`+SI  Å0Ú~ІýÂÿs§òŸƒ…I:Ѿ¨0´¤C àٗ_—/L¼Üܼ|¼øøñññ í)>¡Ÿ)ÿ— èo Yœ7¹ }°JÈ»8owÁ᥁9с¹OŸwÖ>#‡k³è ¿ÁG©ï£<ˆÔÎÊÏHm°ucº‹ßô‘xUn}í°ÜÔ®÷ðNXó€;Šˆâ½&úÞ)7¥wpϮۘ¼¶d€ j+ö¯¡J»‚§V–h6º)#„Ñ#7¬ž>%Î'»ã|Gôä'g]©×S¾bïX|IK«çL@‚Ãя7ž¨øául±ÄoÅ$Ò3{rx£]ÛcDo­£e…·¬Ò^͸ÓçÅs¹Ú˦>1q*;×m;û|s»±?¤ua“ô¾0¹œ??æ¶y7ºRµC•7¢%P4©§)”ñGãY´xÇWN;%>ّî×*ÄÌ´%úæÔî‘h6)+åÛ)ëÙÈj|ýpET¿`cÿîÄ[ُt`AÞp¡þQiËG6(¤Èc™aòš™˜lúǯ6vcw)ñådNjKm¶ìÄÄðî6˜WïògÔ<˜)Œ1v‘üYPq(^ñUYW•ÉüLÚy÷Ò :`—ÏC4‚#Ú;š—@/+Õô#±®×CK*ºÆ»Ä—”@óÃN¶‘µ*ùÕ+¤—Ÿè >·æcö{ZdyÐ*ç÷fž„йð9MüòsŽsq…2If>tÂÜ¥Î%ñŸ¨àj᝞¦Ïog*ˆªÂÔ¨Z…‘rÖ=: ÷…QW—?¹¹Ã¡¸‘ù~'‰Z"°©¤F%cg³¢oí¯‹Á-g\ø kλ³o9vV#6Á>Jdÿʙ@禢ÙGÊé<*®<:G¬ë‰eÓ°¡¹>bHë#öî$£ ò+Q¿…ÃÇ4 +ëf_ÒŹᣌ²I:z>#•*];Ö&tQ$ÊW0— Î¥AÊY㜏Ú,4¾˜ÒnËs;z¸´Gԗ}D·Úméäs¦¼Jߤ#ÍèÇ»¯,˜•D=éRÑq·ßì|»\š]ÿá|ö›RX”ox©<fŽæóοg½|ÿÛº‡JO¾˜ïæ3oÃ.´ÿ#•’76÷za{¨Ñvi[ì1>CŒ+«£–^|8ÚKÉøN9뽤º0\[Gù\×½|OúØ+ïšònHc{\´Tΐvõò7V— ê»âUFgHu"؈¢ríb÷—¹²iêz¥ˆ7$¶")R«2Üüt&ëû–Úa¯՞uÎ1º}чjݎ¸‘®Ç‡®¥ ‚ ÔFxç;:ВZ>½ ¤kôº7òZ¼r¦§1ç™ùtÖ$•¯D×jÜÃlñq…“‰pö+ƒ[%“ñôþ¯! ïåe¼½&Æ}АÞCY%›†hƒåƒ¤Ìí¦´ùJ,B¡†‘BË["sRÛ‚Í ´)®Ö° ·dü4ئ’VÝ@–5ÿŠ—_Ð?¾ ÷YõÒÊ»&:J•ý¥ðU‰„MÕ̃V^Ò#~­g Í›SMV²‘å„`ðå(ÀÐâÏÿ/ŒŒ-ŒáªIfúÈ>[–:ì E3Ž~’>¨ `(î„cÂ%áH¿=r8þäß ¿^XÛ9²°}RÿŒÛ¥ˆ¸Œ¢º®ÑEÊO¦bee¬… úë°pŠõ<1[Ht¢zÎËB-}“ÇO Ûy‡®jÈhšÄˆ$ÙË>õ©heG´¦L¯‰:$sìA•Ó6;,ï‹qÔYË­l;¡Ð?½~=%¯ê_!›ÿ³ÿGÌÿä%÷ÑVOÃëíc§©kP$: DÂæÆLSQÅ.ž}ûê ¶ÄŽÃeñð¼þ«Þñô§JÝF=±sZµqílw‰.C®*Ðä´ùïtàKɹfÈp$oáüø%ÅüEíêŠØ×ÜÁwƒí.Ÿž9ZÖ{$‚{ÑbG`&kb­rýÜem_éÍý ¥—.ª”6•/œ£ K¸“Su7ÙY9X—„?ðÙvÜÎÍGˆè&¤æÄ!8'ëbùK‰Uæ–Ç|=¯~õTé\%x‘u½KÎPxíÚº)¸£Þo:aaiÕ„Ê›T9…šÎįù×?4þ!¿}!³ÈpH»ŽwÌ9펖âq,ænpÔ¨§‡ë‹Û1÷8:î4 S™¨I*Ä+àµ`„Ҫ؏¶î£c<Ú]J¿’W÷Ž%Ãˬ•ñ7Ûh»t@þ^ãnÞî`Su)죀ýÙ„%—‡ó»aAOAY¤×`]b”8˜ŸüÒ!­Gä ÜÞsÌmÑ•_%vØ4A/,y©Kî.ìäspOXH÷³-´{›—B~£Æ¥ä.¿¦š,•˜6ÎH‘åüzá¤i[ÓFȳ·w½h®4Ô¢›Sz®G@\PՃDå‡nìŠÇÓ/wµ&¥OôсÈܦ€fÅfÍd«óäî6,vŸ!BIoŽy~?!uŸö}U \d"c8§–áý…¡^y¯$~|U-íí^ª*/"<[ïM–ضo~HžÐ (¢ÔãKQåü¥n‘ „“”ݨ¡@‰R/úÇØ z ¹ö)@$I™[&-LؖCSÖy¾£}Í D<m±ÿ8û5Ö oî Â=?R+ƒtvBÇx'Sݾó»³Òd¹ž"ڟ±¬œE¸ÌՁ} xE7ÃCÏ¿“}5ô3 Áô*Ö¡Ô ½/zäÒpj˜¢pÙñg!|!!P ¸0'oœHš¤¤l,¾ÏбzHSÒß­ªÕÉÎ8,<<¿EZqDf^—›L5!_ɲiȘsöCZ$ßd¼ÖÙYr˜$×*÷+ýˆÂ±1¢—Ç‘'Å $<.fôJ@¼ü“$ÂEjó'jåD·òy,¸§\åз'/b‡JÇ|ê±OÈŪy#ŸÕ¦%†gSG:N$¨5;ÃÔæ'i‚MÙºæ©ÕÁKu×[˜«Ø/÷!jœ'ó6¶L‚×^›ÞÒʼõi×Ëî!•é)ȨÑßÂú â²š¼^õ¥j[› ¼¿”9Ä=›}—÷ûq’Z"•hžöÕÀýöÑœ¾Ã}iËîVÇWYç¬Lί¡;CHý0•fᦜ`ð¬¦:ãÐRT9]Õ>´ÞSÊÿ’ÿI,U/[¬A:[6·4Iw¼Î?¬§Ÿ=k*êœl½”ë©›¡'&ãÃÚÛú삸oä¶ûñ‰ÌÃà÷Г£N”—  ÝfBúu‚ÁIþj‰áZ§â¶—fÐsöÑ©¹æU%îíÏ'ô±ñ헢^Üaÿъ·;FK¯÷:á!¡j†8íW9œÛ˜åÆ<~›4KR„ćoÑ9ìVNœ€e®KK~°°ö.MЬ|æ1YHˆäOH¾¡5ƒ lø„ww§® Ÿã/¾02OÑm¼gtzÑ¿.Ҙ›<+yÛHŠH°JîãÿaµJÉöÙx1ýNµ¸e;3ǺÌ%ò4þ îžpE\[ŠùøŒRÌ!ï‹™±á¡ÉՐÉ›—­ á³Aú6§—ì“ÃÔG‹ÝŸõ–¨qE‘'×Mû5*‹dîÊ(´mÞïüÀk˜…Uíi<¹\^†žæ7šAÆ(äÜVîR²l¸âKƒ@ÔV’+¥[HË&N]ò„eõ5iÃßO40öݤžÎ®Š…Ü–;~új44,ÖRæN .¹GKÓ-ÂU昡±Ëð]! !;yêl‚³¸Úu 9yJ̘'§[+|<@y€Ùée°Ìý†n|Ú· ¢Õf}Íþˆô/ÉJáöw®ú@f…#|gID :€]5V¬™t»F8ðÙҁ¤€ç2|y ~²â­šV¨’ÝT vdš#vnêÄ- céeúƒ[Ï.êQ7Œáõ†ŸŸÌæj¸lmÛÐDWš×Ñ7ë>~\r„Y쪙 ž;ª©ýQ³0\u´•#¿úé&áŒn)!|ºcp<ÛL^}é±­8¦š³ap« ±ï ™øMɆ-jöٙÔþ´ *RµG}<!ÇwÕliØÉÑïmªÝºJ‹ƒ•Í^cæÏ#¸®iæÏMS“z^ã³w™û®¿‘IVɘNYc6¸ùè]›¼ äð‰V1ç…[¡_ànØc†hh$;±|å²_gˆUq Aïu!.š•Ç>{ÂA«Uòe/¥F SÅÒ¶Æ֛¨^£³±4›š:HO¤XùwR§¼ lU¢,±%ÕŸ°Ùøþ·]|¾³ÀnÛ*-}JéSï³<Ê?'‘@êý黯­Øœ¹<~¼ž‘íÇ~î74Ë<øx—Ö1&$ž6*˜h›Í4gŠ4gëÐGþ PK  $ø—Ú¯®žÆ_¼JmO%o:{“‡Æa’a}mØa8 A4 &B(ø-ØÖÂV¤ÙssGÜÉòèUV?Š‘~õ¦»<"ôT.Ào›žÚ;¡q€é]Gö†Ã ÇÀ_!-d¤¦àHãß(ÓRËÑ"ä7« >Ò$q-úuì@Gwjð0oñ³øâCÓ3n [$ ‡!bÄÀ±LŽxšeëé9Ÿ.^Ò,1¤}5›¸;1Ç<Ü'ÿ¾ÇÚè’èd&' ‹Wz¿ˆû–ÈŒ¦A;zœ] OåâXüë·s銶^†ÅyG½e]ž±¹ûž–= ÃahOóG×\,Í» <é° ÃiˆƒŸÃ¥ÈœÞAüR.±¥K`‘ºë‹”æÈ# 1J9a¸ s+x,K ^¦ktМCÙþ+pm s7à Aâ9íκøÃøµ{™ù°V‰Ž”¡BäçcvCX8a¸ s+ø;ÆG}~[ÂT°[tfõï÷m#µú)ÀR àxØÅî5ñ$4äw–7èpÅ3tÂpæÁà‹ÙlFÁ÷°ñ| sú°ß×C†#¾È°²æ–èÎ [À`®€‡„ìñÇ—††Ë0j˜x8pOAAf—¨zÈøú`2!÷c»Jµ!t6é›Â;:ýWì¾÷Ç€œ0\†yðä*:R÷ň¥’ôÑ×W¤a­¶lÊ®?ÅÁ[¼—Bw‚†?' —a¼œ!±ÖŒ±‰mì¡>LVðèZ©¾>¿øè8x; —aú s·É2öW£ÀäªÐê¤ ¼F ø­tæÄd¾‹uáŠÕÅ£—w¿¯VÑ£s´Z'‡“ah=ÞÊÏ Ã¾Žê¿f݁*ÅE‹41‡²1wSžÝз3þÌðTˆ®ÇÆ©ù9aøÁ×hŸ¥àßÁ®èJÙ ‹{¿s7ä™W¾½Ð8ð&\¹o§æç„á?VçÓ.³#îJ>ԐFæ˜?©Ò™5îP6tGøxæîÝÿ8ðæ8WFñ¨8 ? øjÚc6ؽWñɕ®Ó÷ô6±ÙI‹4‘ï÷Uà™Š http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/title-ezc.xml?view=markup&rev=1.1 Index: presentations/slides/ezc/title-ezc.xml +++ presentations/slides/ezc/title-ezc.xml <slide fontsize="3.5em"> <title>Welcome!</title> <image align="center" filename="components.png" /> <break lines="3"/> <blurb class="event">RAD for PHP</blurb> <break/> <blurb class="event-date">PHP Conference UK. London, UK</blurb> <break/> <blurb class="event-presenter">Derick Rethans &amp;lt;&lt;a href="mailto:dr@ez.no">dr@ez.no&lt;/a>&amp;gt;</blurb> <break/> <blurb class="pres-url-small">&lt;a href="http://files.derickrethans.nl/ezc-phpuk6.pdf">http://files.derickrethans.nl/ezc-phpuk6.pdf&lt;/a></blurb> </slide> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/userinput.php?view=markup&rev=1.1 Index: presentations/slides/ezc/userinput.php +++ presentations/slides/ezc/userinput.php <?php require 'ezc-setup.php'; if ( ezcInputForm::hasGetData() ) { $definition = array( 'test' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::REQUIRED, 'int' ), 'test2' => new ezcInputFormDefinitionElement( ezcInputFormDefinitionElement::REQUIRED, 'number_int' ), ); try { $form = new ezcInputForm( INPUT_GET, $definition ); echo $form->test, "\n"; echo $form->test2, "\n"; } catch ( ezcInputFormException $e ) { die( $e->getMessage() ); } } ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/cfg/example.ini?view=markup&rev=1.1 Index: presentations/slides/ezc/cfg/example.ini +++ presentations/slides/ezc/cfg/example.ini # Comment for the section [db] # This is ofcourse not my real password... password=noneofyourbusiness http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/cfg/example.php?view=markup&rev=1.1 Index: presentations/slides/ezc/cfg/example.php +++ presentations/slides/ezc/cfg/example.php <?php return array ( 'settings' => array ( 'db' => array ( 'password' => 'noneofyourbusiness', ), ), 'comments' => array ( 'db' => array ( '#' => ' Comment for the section', 'password' => ' This is ofcourse not my real password...', ), ), ); ?> http://cvs.php.net/viewcvs.cgi/presentations/slides/ezc/cfg/example2.ini?view=markup&rev=1.1 Index: presentations/slides/ezc/cfg/example2.ini +++ presentations/slides/ezc/cfg/example2.ini sadufi87678&^%*^ [db] password=noneofyourbusiness
« previous php.pres (#1253) next »