* Updated slides for tomorrow.

This commit is contained in:
Tobias Schlitt
2006-11-07 00:27:20 +00:00
parent 1d5554c19b
commit 752c32fce2
12 changed files with 146 additions and 8 deletions

View File

@@ -19,26 +19,32 @@
<slide>slides/ezc-ffm-06/title-ezc-generic.xml</slide>
<slide>slides/php-best-practices/aboutme-kore.xml</slide>
<slide>slides/php-best-practices/aboutme-toby.xml</slide>
<slide>slides/ezc-ffm-06/aboutme-toby.xml</slide>
<slide>slides/ezc-ffm-06/agenda.xml</slide>
<!-- introduction -->
<slide>slides/ezc-ffm-06/introduction-title.xml</slide>
<slide>slides/toolbox/goals-library.xml</slide>
<!-- overview -->
<slide>slides/ezc/contributing.xml</slide>
<slide>slides/ezc/overview.xml</slide>
<slide>slides/toolbox/dependencies.xml</slide>
<slide>slides/ezc/install-download.xml</slide>
<!-- getting started -->
<slide>slides/ezc-ffm-06/getting-started-title.xml</slide>
<slide>slides/ezc-ffm-06/install-download.xml</slide>
<slide>slides/ezc/install-pear.xml</slide>
<!-- some cool components -->
<slide>slides/ezc-ffm-06/some-cool-components-title.xml</slide>
<slide>slides/ezc/example-consoletools-table.xml</slide>
<slide>slides/ezc/example-consoletools-progressbar.xml</slide>
<slide>slides/ezc/example-eventlog.xml</slide>
<slide>slides/ezc/example-database-instance.xml</slide>
<slide>slides/ezc/example-database-query.xml</slide>
<slide>slides/ezc-ffm-06/example-database-instance.xml</slide>
<slide>slides/ezc-ffm-06/example-database-query.xml</slide>
<slide>slides/ezc/example-persistentobject.xml</slide>
<slide>slides/ezc/example-imageconversion.xml</slide>
@@ -58,10 +64,10 @@
<slide>slides/ezc/example-feed.xml</slide>
<slide>slides/ezc/example-feed2.xml</slide>
<!-- what's next? -->
<!-- stats and future -->
<slide>slides/ezc-ffm-06/stats-future-title.xml</slide>
<slide>slides/ezc-ffm-06/stats.xml</slide>
<slide>slides/ezc/future-1.1-1.2.xml</slide>
<slide>slides/ezc/contributing.xml</slide>
<slide>slides/ezc/questions.xml</slide>
</presentation>

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<slide title="About us - Toby">
<list>
<bullet>Tobias Schlitt &lt;ts@ez.no&gt;</bullet>
<bullet>IT specialist, currently studying computer science</bullet>
<bullet>Working for eZ systems on the eZ components project</bullet>
<bullet>Member of the Zend Certification team</bullet>
<bullet>PHP Usergroup Dortmund</bullet>
</list>
<break />
<break />
<list>
<bullet>http://ez.no</bullet>
<bullet>http://schlitt.info</bullet>
<bullet>http://phpugdo.de</bullet>
</list>
</slide>

View File

@@ -0,0 +1,25 @@
<?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(
'name', $sq->bindValue( 'frankfurt%' )
)
)
->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" ) );
}
?>

12
slides/ezc-ffm-06/database.php Executable file
View File

@@ -0,0 +1,12 @@
<?php
require 'ezc-setup.php';
$db1 = ezcDbFactory::create( 'mysql://root@localhost/test' );
ezcDbInstance::set( $db1, 'ezc' );
$trunk = ezcDbFactory::create( 'mysql://root@localhost/geolocation' );
ezcDbInstance::set( $trunk, 'ezt' );
$db = ezcDbInstance::get( 'ezt' );
echo $db->getName();
?>

View File

@@ -0,0 +1,17 @@
<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>

View File

@@ -0,0 +1,8 @@
<slide>
<title>Database</title>
<subtitle>Query Abstraction</subtitle>
<example encoding="iso-8859-1" filename='database-query-abstraction.php' result="1"/>
</slide>

View File

@@ -0,0 +1,8 @@
<?php
require '/home/dotxp/dev/ez/ezcomponents/trunk/Base/src/base.php';
function __autoload( $className )
{
ezcBase::autoload( $className );
}
?>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<slide title="Agenda">
<break lines="10" />
<blurb class="large_blurb_center">Getting started</blurb>
</slide>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<slide>
<title>Installation and Setup</title>
<subtitle>Download bundle</subtitle>
<blurb>Installation:</blurb>
<example><![CDATA[// download the bundle from http://ez.no/download/ez_components
tar -xjf ezcomponents-1.1.tar.bz2
pwd]]></example>
<break lines="3"/>
<blurb>Setup:</blurb>
<example result='1'><![CDATA[<?php
ini_set( 'include_path', '/home/dotxp/dev/ez/ezcomponents/trunk:.' );
require 'Base/src/base.php';
function __autoload( $className )
{
ezcBase::autoload( $className );
}
ezcBase::checkDependency( 'Test', ezcBase::DEP_PHP_VERSION, '5.3.0' );
?>]]></example>
</slide>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<slide title="Agenda">
<break lines="10" />
<blurb class="large_blurb_center">Introduction</blurb>
</slide>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<slide title="Agenda">
<break lines="10" />
<blurb class="large_blurb_center">Some cool components</blurb>
</slide>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<slide title="Agenda">
<break lines="10" />
<blurb class="large_blurb_center">Stats and future</blurb>
</slide>