<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6605337807983901099</id><updated>2024-10-07T08:11:20.820+02:00</updated><category term="php"/><category term="design patterns"/><category term="linux"/><category term="aws"/><category term="cloud"/><category term="debian"/><category term="ec2"/><category term="mysql"/><category term="nginx"/><category term="redis"/><title type='text'>Guillaume BENOIT</title><subtitle type='html'>Web programming</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gbenoit79.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gbenoit79.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Guillaume BENOIT</name><uri>http://www.blogger.com/profile/09538911510523286632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6605337807983901099.post-7809353532915551122</id><published>2012-04-13T14:02:00.000+02:00</published><updated>2012-04-13T18:10:39.875+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="design patterns"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Design pattern strategy</title><summary type="text">DéfinitionLe design pattern strategy définit une famille d&#39;algorithmes, encapsule chacun d&#39;eux, et les rend interchangeables. Il laisse l’algorithme changer indépendamment des clients qui les utilisent.

Diagramme UML

Diagramme de classes du design pattern strategy

Exemple en PHP// The classes that implement a concrete strategy should implement this
// The context class uses this to call the </summary><link rel='replies' type='application/atom+xml' href='http://gbenoit79.blogspot.com/feeds/7809353532915551122/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://gbenoit79.blogspot.com/2011/04/design-pattern-strategy.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/7809353532915551122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/7809353532915551122'/><link rel='alternate' type='text/html' href='http://gbenoit79.blogspot.com/2011/04/design-pattern-strategy.html' title='Design pattern strategy'/><author><name>Guillaume BENOIT</name><uri>http://www.blogger.com/profile/09538911510523286632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhs7nDa4qyqUandfQ0ax_lDcKGLFM4ckzXk9O6-xxzGpw4ItN9KJ_1QChg7m11DXci4TGeAGVu4L-SuzMOnYteRe2W0aIM9YhAMKbCflfRHs2arZiGhASW5UU9c9spRQUVh2LotlgF9pw4s/s72-c/strategy_diagram.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6605337807983901099.post-5825791729744961023</id><published>2012-04-06T15:10:00.001+02:00</published><updated>2012-04-06T16:57:42.552+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aws"/><category scheme="http://www.blogger.com/atom/ns#" term="cloud"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Quick Launch a Linux instance on Amazon EC2</title><summary type="text">
  Sign in to the AWS console at https://console.aws.amazon.com/ec2/
  Select a region (Ex: EU West)
  Click Launch Instance
  Select Quick Launch Wizard
  Type the name of your instance (Ex: Web Server)
  Create and download a new key pair (Ex: myhosts)
  Choose the configuration: Amazon Linux AMI 64 bits
  Click Continue and Launch
</summary><link rel='replies' type='application/atom+xml' href='http://gbenoit79.blogspot.com/feeds/5825791729744961023/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://gbenoit79.blogspot.com/2012/04/quick-launch-linux-instance-on-amazon.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/5825791729744961023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/5825791729744961023'/><link rel='alternate' type='text/html' href='http://gbenoit79.blogspot.com/2012/04/quick-launch-linux-instance-on-amazon.html' title='Quick Launch a Linux instance on Amazon EC2'/><author><name>Guillaume BENOIT</name><uri>http://www.blogger.com/profile/09538911510523286632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6605337807983901099.post-486777636476410767</id><published>2012-03-21T12:29:00.000+01:00</published><updated>2012-03-21T12:29:15.757+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="nginx"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="redis"/><title type='text'>Utilisation de Dotdeb</title><summary type="text">Dotdeb est un dépôt Debian qui permet d&#39;installer les dernières versions stables de PHP, MySQL, Nginx, Redis...

Liste des étapes pour l&#39;utiliser :


Ajouter ces deux lignes à votre fichier&amp;nbsp;/etc/apt/sources.list&amp;nbsp;(choisir un miroir&amp;nbsp;plus proche)deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all

Ensuite, récupérer la clé&amp;nbsp;GnuPGwget http://</summary><link rel='replies' type='application/atom+xml' href='http://gbenoit79.blogspot.com/feeds/486777636476410767/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://gbenoit79.blogspot.com/2012/03/utilisation-de-dotdeb.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/486777636476410767'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/486777636476410767'/><link rel='alternate' type='text/html' href='http://gbenoit79.blogspot.com/2012/03/utilisation-de-dotdeb.html' title='Utilisation de Dotdeb'/><author><name>Guillaume BENOIT</name><uri>http://www.blogger.com/profile/09538911510523286632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6605337807983901099.post-8785243256459354449</id><published>2011-04-22T11:39:00.004+02:00</published><updated>2011-04-22T11:47:08.321+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="design patterns"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Design pattern observer</title><summary type="text">

Définition
Le design pattern observer définit une relation un-à-plusieurs entre des objets de sorte que quand un objet change d&#39;état, toutes ses relations sont notifiées et mises à jour automatiquement.



Diagramme UML


Diagramme de classes du design pattern observer


Exemple en PHP
Depuis PHP 5.1, la Standard PHP Library (SPL) fournit les interfaces SplSubject et SplObserver pour </summary><link rel='replies' type='application/atom+xml' href='http://gbenoit79.blogspot.com/feeds/8785243256459354449/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://gbenoit79.blogspot.com/2011/04/design-pattern-observer.html#comment-form' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/8785243256459354449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6605337807983901099/posts/default/8785243256459354449'/><link rel='alternate' type='text/html' href='http://gbenoit79.blogspot.com/2011/04/design-pattern-observer.html' title='Design pattern observer'/><author><name>Guillaume BENOIT</name><uri>http://www.blogger.com/profile/09538911510523286632</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtgPwQbScvzQQ-1jbxiwKIMI5tSHK3xU73h-Ld-Eh_Br5ZfYVggnrekKCrHAyv24uVpvnJVXg2841XD6Fo-X7NSXfYwIemEnqdbqjP5iDXoseOSHkHzx-qVKa-HBJOgb2vnoVMZQcVgfs6/s72-c/design-pattern-observer.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>