Author: hugo.hamon Date: 2010-02-11 00:00:37 +0100 (Thu, 11 Feb 2010) New Revision: 27870
Modified: doc/branches/1.4/jobeet/en/01.markdown doc/branches/1.4/jobeet/en/02.markdown doc/branches/1.4/jobeet/en/03.markdown doc/branches/1.4/jobeet/en/04.markdown doc/branches/1.4/jobeet/en/05.markdown doc/branches/1.4/jobeet/en/06.markdown doc/branches/1.4/jobeet/es/06.markdown doc/branches/1.4/jobeet/fr/01.markdown doc/branches/1.4/jobeet/fr/02.markdown doc/branches/1.4/jobeet/fr/03.markdown doc/branches/1.4/jobeet/fr/04.markdown doc/branches/1.4/jobeet/fr/05.markdown doc/branches/1.4/jobeet/fr/06.markdown doc/branches/1.4/jobeet/it/06.markdown doc/branches/1.4/jobeet/ja/06.markdown doc/branches/1.4/jobeet/ru/06.markdown Log: [doc] updated chapter 6 of the Jobeet tutorial Modified: doc/branches/1.4/jobeet/en/01.markdown =================================================================== --- doc/branches/1.4/jobeet/en/01.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/01.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -683,14 +683,13 @@ >~Windows~ users can use the great >[TortoiseSVN](http://tortoisesvn.tigris.org/) client to manage their subversion repository. -See you Tomorrow ----------------- +Final Thoughts +-------------- Well, time is over for today! Even if we have not yet started talking about symfony, we have setup a solid development environment, we have talked about web development best practices, and we are ready to start coding. -Tomorrow, we will reveal what the application will do and talk about the -requirements we need to implement for Jobeet. +The following chapter will reveal what the application will do and talk about the requirements we need to implement for Jobeet. __ORM__ \ No newline at end of file Modified: doc/branches/1.4/jobeet/en/02.markdown =================================================================== --- doc/branches/1.4/jobeet/en/02.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/02.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -175,8 +175,8 @@ When the admin activates a new affiliate, the system creates a unique token to be used by the affiliate. -See you Tomorrow ----------------- +Final Thoughts +-------------- As for any web development, you never start coding the first day. You need to gather the requirements first and work on a mockup design. That's what we Modified: doc/branches/1.4/jobeet/en/03.markdown =================================================================== --- doc/branches/1.4/jobeet/en/03.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/03.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -744,8 +744,8 @@  -See you Tomorrow ----------------- +Final Thoughts +-------------- That's all for today. I have warned you in the introduction. Today, we have barely written PHP code but we have a working web module for the job model, Modified: doc/branches/1.4/jobeet/en/04.markdown =================================================================== --- doc/branches/1.4/jobeet/en/04.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/04.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -863,15 +863,11 @@ >[API documentation](http://www.symfony-project.org/api/1_4/) to learn more >about all symfony internal classes. -See you Tomorrow ----------------- +Final Thoughts +-------------- -Today, we have described some design patterns used by symfony. Hopefully the -project directory structure now makes more sense. We have played with the -templates by manipulating the layout and the template files. We have also made -them a bit more dynamic thanks to slots and actions. +In this fourth chapter, we have described some design patterns used by symfony. Hopefully the project directory structure now makes more sense. We have played with templates by manipulating the layout and template files. We have also made them a bit more dynamic thanks to slots and actions. -Tomorrow, we will learn more about the `url_for()` helper we have used today, -and the routing sub-framework associated with it. +In the following chapter, we will learn more about the `url_for()` helper we have used today, and the routing sub-framework associated with it. __ORM__ Modified: doc/branches/1.4/jobeet/en/05.markdown =================================================================== --- doc/branches/1.4/jobeet/en/05.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/05.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -626,14 +626,11 @@ The Jobeet application must still work as before. -See you Tomorrow ----------------- +Final Thoughts +-------------- -Today was packed with a lot of new information. You have learned how to use -the routing framework of symfony and how to decouple your URLs from the -technical implementation. +This chapter was packed with a lot of new information. You have learned how to use the routing framework of symfony and how to decouple your URLs from the technical implementation. -Tomorrow, we won't introduce any new concepts, but rather spend time going -deeper into what we've covered so far. +In the following chapter, we won't introduce any new concept, but rather spend time going deeper into what we've covered so far. __ORM__ Modified: doc/branches/1.4/jobeet/en/06.markdown =================================================================== --- doc/branches/1.4/jobeet/en/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/en/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -434,7 +434,7 @@ </propel> <doctrine> $this->jobeet_jobs = - ➥ Doctrine::getTable('JobeetJob')->getActiveJobs(); + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -545,7 +545,7 @@ </propel> <doctrine> $this->categories = - ➥ Doctrine::getTable('JobeetCategory')->getWithJobs(); + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -648,7 +648,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } The `JobeetCategory::getActiveJobs()` method uses the @@ -712,7 +712,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> @@ -771,7 +771,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> Be careful, the YAML parser won't like you if you mess up with ~Indentation|Code Formatting~. Keep in mind the following simple tips when @@ -848,8 +848,7 @@ } </propel> <doctrine> -The `retrieveActiveJob` method will receive the `Doctrine_Query` object built by -the route: +The `retrieveActiveJob()` method will receive the `Doctrine_Query` object built by the route: [php] // lib/model/doctrine/JobeetJobTable.class.php @@ -888,9 +887,6 @@ online [~API~ documentation](http://www.symfony-project.org/api/1_4/) and all the free [~documentation|Documentation~](http://www.symfony-project.org/doc/1_4/) -available on the symfony website to help you out. We'll see you again tomorrow -with our take on this implementation. +available on the symfony website to help you out. The following chapter will give you the solution on how to implement this feature. -Good luck! - __ORM__ Modified: doc/branches/1.4/jobeet/es/06.markdown =================================================================== --- doc/branches/1.4/jobeet/es/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/es/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -366,7 +366,8 @@ $this->jobeet_jobs = JobeetJobPeer::getActiveJobs(); </propel> <doctrine> - $this->jobeet_jobs = Doctrine::getTable('JobeetJob')->getActiveJobs(); + $this->jobeet_jobs = + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -470,7 +471,8 @@ $this->categories = JobeetCategoryPeer::getWithJobs(); </propel> <doctrine> - $this->categories = Doctrine::getTable('JobeetCategory')->getWithJobs(); + $this->categories = + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -564,7 +566,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } El método `JobeetCategory::getActiveJobs()` usa al método `Doctrine::getTable('JobeetJob')->getActiveJobs()` para obtener los puestos de trabajo activos para una categoría dada. @@ -623,7 +625,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> @@ -678,7 +680,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> Ten cuidado, al analizar YAML no olvides ninguna indentación. Manten en mente los siguientes simples tips cuando añadas código PHP a un archivo YAML @@ -743,7 +745,7 @@ } </propel> <doctrine> -El método `retrieveActiveJob` recibirá el objeto `Doctrine_Query` ya listo por parte de la ruta: +El método `retrieveActiveJob()` recibirá el objeto `Doctrine_Query` ya listo por parte de la ruta: [php] // lib/model/doctrine/JobeetJobTable.class.php Modified: doc/branches/1.4/jobeet/fr/01.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/01.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/01.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -683,14 +683,13 @@ >Les utilisateurs de ~Windows~ peuvent utiliser l'excellent client >[TortoiseSVN](http://tortoisesvn.tigris.org/) pour gérer leur dépôt Subversion. -A demain ----------------- +Conclusion +---------- -Eh bien, le temps est fini pour aujourd'hui! Même si nous n'avons pas encore commencé à parler de -symfony, nous avons créé un environnement de développement solide, nous avons parlé des bonnes pratiques -du développement web, et nous sommes prêts à commencer à coder. +Ce premier chapitre s'achève ici. Bien que nous n'ayons pas encore commencé à parler de +symfony, nous avons cependant créé un environnement de développement solide. Nous avons aussi évoqué quelques bonnes pratiques +du développement web, et nous sommes à présent prêts à développer. -Demain, nous révèlerons ce que l'application va faire et nous parlerons des -exigences que nous devons mettre en œuvre pour Jobeet. +Le chapitre suivant dévoilera les fonctionnalités de la future application et détaillera les besoins fonctionnels et techniques à satisfaire dans Jobeet. __ORM__ \ No newline at end of file Modified: doc/branches/1.4/jobeet/fr/02.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/02.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/02.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -175,10 +175,10 @@ Lorsque l'administrateur active une nouvelle filiale, le système crée un jeton unique a utilisé par la filiale. -A demain ----------------- +Conclusion +---------- -Comme pour tout développement Web, vous ne commencez jamais la codification la première journée. Vous avez +Comme pour tout développement Web, vous ne commencez jamais la programmation la première journée. Vous avez besoin de recueillir les premières exigences et les travaux sur une maquette. C'est ce que nous avons fait aujourd'hui. Modified: doc/branches/1.4/jobeet/fr/03.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/03.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/03.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -744,12 +744,12 @@  -A demain ----------------- +Conclusion +---------- -C'est tout pour aujourd'hui. Je vous l'indiquais dans l'introduction. Aujourd'hui, nous avons -à peine écrit du code PHP, mais nous avons un module web de travail pour le modèle job, -prêts à être modifié et personnalisé. Rappelez-vous, pas de code PHP signifie pas de bogues non plus ! +C'est tout pour ce chapitre. Nous vous avions prévenu en guise introduction. Au cours de ce troisième chapitre, nous avons +à peine écrit du code PHP, mais nous avons néanmoins un module web de travail pour le modèle job, +prêt à être modifié et personnalisé. Rappelez-vous, pas de code PHP signifie pas de bogues non plus ! Si vous avez encore de l'énergie, n'hésitez pas à lire le code généré pour le module et le modèle et essayer de comprendre comment il fonctionne. Sinon, ne Modified: doc/branches/1.4/jobeet/fr/04.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/04.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/04.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -864,15 +864,15 @@ >parcourir [la documentation de l'API](http://www.symfony-project.org/api/1_4/) >pour en apprendre plus sur les classes internes de symfony. -À demain --------- +Conclusion +---------- -Aujourd'hui, nous avons décrit quelques modèles de conception utilisés par symfony. Espérons que +Tout au long de ce chapitre, nous avons décrit quelques uns des modèles de conception utilisés par symfony. Espérons que la structure des répertoires du projet ait maintenant plus de sens. Nous avons joué avec les Templates en manipulant la mise en page et les fichiers des Templates. Nous avons également rendu les pages un peu plus dynamiques grâce aux slots et aux actions. -Demain, nous en apprendrons plus sur le helper `url_for()` que nous avons aperçu aujourd'hui, +Au cours du prochain chapitre, nous en apprendrons davantage sur le helper `url_for()` que nous avons aperçu aujourd'hui, et le "sous-framework" de routage qui lui est associé. __ORM__ Modified: doc/branches/1.4/jobeet/fr/05.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/05.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/05.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -626,14 +626,13 @@ L'application Jobeet fonctionne toujours à l'identique. -À demain ----------------- +Conclusion +---------- -Aujourd'hui, le tutoriel contenait beaucoup de nouvelles informations. Vous avez -appris comment utiliser le framework de routage de symfony et comment dissocier vos URLs -de la réalisation technique +Ce chapitre a introduit beaucoup de nouvelles informations. Vous avez +appris à utiliser le framework de routage de symfony et à dissocier vos URLs +de la réalisation technique. -Demain, nous n'allons pas introduire de nouveaux concepts, mais plutôt passer du temps à -aller plus profondément dans ce que nous avons vu jusqu'à présent. +Au cours du chapitre suivant, nous n'introduirons aucun concept nouveau, mais nous passerons davantage de temps à étudier plus en détails tout ce que nous avons découvert jusqu'à présent. __ORM__ Modified: doc/branches/1.4/jobeet/fr/06.markdown =================================================================== --- doc/branches/1.4/jobeet/fr/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/fr/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -434,7 +434,7 @@ </propel> <doctrine> $this->jobeet_jobs = - ➥ Doctrine::getTable('JobeetJob')->getActiveJobs(); + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -545,7 +545,7 @@ </propel> <doctrine> $this->categories = - ➥ Doctrine::getTable('JobeetCategory')->getWithJobs(); + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -648,7 +648,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } La méthode `JobeetCategory::getActiveJobs()` utilise la méthode @@ -712,7 +712,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> @@ -771,7 +771,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> Attention ! L'analyseur de YAML n'aime pas les erreurs d' ~indentation|Formatage du code~. Gardez bien à l'esprit les conseils suivants si @@ -783,17 +783,14 @@ * Si l'instructione `<?php ?>` termine une ligne, vous devez indiquer clairement une nouvelle ligne ("\n"). -Rechargez les jeux de test avec la tâche `propel:data-load` et vérifiez que seulement -`10` emplois soient affichés en page d'accueil pour la catégorie `Programming`. -Dans la capture d'écran suivante, nous avons modifié le nombre maximum d'emplois sur -5 pour avoir une image de taille raisonnable : +Rechargez les jeux de test avec la tâche `propel:data-load` et vérifiez que seulement `10` offres d'emplois soient affichées en page d'accueil pour la catégorie `Programming`. Dans la capture d'écran suivante, nous avons diminué le nombre maximum d'offres à 5 afin d'obtenir une image de taille raisonnable :  Sécurisez la page emploi ------------------------ -Même si vous connaissez l'URL d'un emploi qui a expiré, il ne doit plus être possible +Même si vous connaissez l'URL d'une offre qui a expiré, il ne doit plus être possible d'y accéder. Essayez l'URL d'un emploi expiré (remplacez l'`id` par l'`id` correspondant dans la base de donnée - `SELECT id, token FROM jobeet_job WHERE expires_at < NOW()`) : @@ -848,8 +845,7 @@ } </propel> <doctrine> -La méthode `retrieveActiveJob` va recevoir l'objet `Doctrine_Query` construit par la -route : +La méthode `retrieveActiveJob()` recevra l'objet `Doctrine_Query` construit par la route : [php] // lib/model/doctrine/JobeetJobTable.class.php @@ -881,16 +877,13 @@ nous avons déjà appris et implémenter cette fonction par vous-même. Vous pourrez vérifier votre travail demain. -À demain --------- +Conclusion +---------- -Travaillez votre projet Jobeet en locale. N'hésitez pas à abuser de la documentation en ligne +Prenez le temps de développer votre projet Jobeet en local. N'hésitez pas à abuser de la documentation en ligne de l'[~API~](http://www.symfony-project.org/api/1_4/) et de toute la [~documentation|Documentation~](http://www.symfony-project.org/doc/1_4/) gratuite disponible -sur le site pour vous aider. On se retrouve demain pour découvrir l'implémentation -de la page catégorie. +sur le site pour vous aider. Le chapitre suivant donne la solution d'implémentation de cette fonctionnalité. -Bonne chance ! - __ORM__ Modified: doc/branches/1.4/jobeet/it/06.markdown =================================================================== --- doc/branches/1.4/jobeet/it/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/it/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -429,7 +429,8 @@ $this->jobeet_jobs = JobeetJobPeer::getActiveJobs(); </propel> <doctrine> - $this->jobeet_jobs = Doctrine::getTable('JobeetJob')->getActiveJobs(); + $this->jobeet_jobs = + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -538,7 +539,8 @@ $this->categories = JobeetCategoryPeer::getWithJobs(); </propel> <doctrine> - $this->categories = Doctrine::getTable('JobeetCategory')->getWithJobs(); + $this->categories = + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -637,7 +639,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } Il metodo `JobeetCategory::getActiveJobs()` usa il metodo @@ -703,7 +705,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> @@ -759,7 +761,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> State attenti, il parser YAML si arrabbierà se si fa confusione con l'~indentazione~. Tenete a mente i seguenti semplici consigli, quando @@ -836,7 +838,7 @@ } </propel> <doctrine> -Il metodo `retrieveActiveJob` riceverà l'oggetto `Doctrine_Query` costruito dalla rotta: +Il metodo `retrieveActiveJob()` riceverà l'oggetto `Doctrine_Query` costruito dalla rotta: [php] // lib/model/doctrine/JobeetJobTable.class.php Modified: doc/branches/1.4/jobeet/ja/06.markdown =================================================================== --- doc/branches/1.4/jobeet/ja/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/ja/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -368,7 +368,7 @@ </propel> <doctrine> $this->jobeet_jobs = - ➥ Doctrine::getTable('JobeetJob')->getActiveJobs(); + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -471,7 +471,7 @@ </propel> <doctrine> $this->categories = - ➥ Doctrine::getTable('JobeetCategory')->getWithJobs(); + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -561,7 +561,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } `JobeetCategory::getActiveJobs()` メソッドは渡されたカテゴリーに対してアクティブな求人を読み取るために`Doctrine::getTable('JobeetJob')->getActiveJobs()` メソッドを使います。 @@ -618,7 +618,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> 適切な ~`LIMIT`~ 句は Model の中で決め打ちされていますが、この値を設定可能にすることはよいことです。`app.yml` にセットした求人の最大件数をテンプレートに渡すように変更します: @@ -671,7 +671,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> YAML パーサーは~インデント|コードのフォーマッティング~が崩れていると動作しない点に注意してください。YAML ファイルに PHP コードを追加する場合の簡単なティップスを下記に示すので覚えておいてください: @@ -736,7 +736,7 @@ } </propel> <doctrine> -`retrieveActiveJob` メソッドはルートによってビルドされた `Doctrine_Query` オブジェクトを受け取ります: +`retrieveActiveJob()` メソッドはルートによってビルドされた `Doctrine_Query` オブジェクトを受け取ります: [php] // lib/model/doctrine/JobeetJobTable.class.php Modified: doc/branches/1.4/jobeet/ru/06.markdown =================================================================== --- doc/branches/1.4/jobeet/ru/06.markdown 2010-02-10 22:57:56 UTC (rev 27869) +++ doc/branches/1.4/jobeet/ru/06.markdown 2010-02-10 23:00:37 UTC (rev 27870) @@ -417,7 +417,8 @@ $this->jobeet_jobs = JobeetJobPeer::getActiveJobs(); </propel> <doctrine> - $this->jobeet_jobs = Doctrine::getTable('JobeetJob')->getActiveJobs(); + $this->jobeet_jobs = + ➥ Doctrine_Core::getTable('JobeetJob')->getActiveJobs(); </doctrine> } @@ -527,7 +528,8 @@ $this->categories = JobeetCategoryPeer::getWithJobs(); </propel> <doctrine> - $this->categories = Doctrine::getTable('JobeetCategory')->getWithJobs(); + $this->categories = + ➥ Doctrine_Core::getTable('JobeetCategory')->getWithJobs(); </doctrine> } @@ -621,7 +623,7 @@ ->from('JobeetJob j') ->where('j.category_id = ?', $this->getId()); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } Метод `JobeetCategory::getActiveJobs()` использует @@ -684,7 +686,7 @@ ->where('j.category_id = ?', $this->getId()) ->limit($max); - return Doctrine::getTable('JobeetJob')->getActiveJobs($q); + return Doctrine_Core::getTable('JobeetJob')->getActiveJobs($q); } </doctrine> @@ -744,7 +746,7 @@ token: job_<?php echo $i."\n" ?> email: [email protected] - <?php endfor; ?> + <?php endfor ?> Будьте внимательны, парсеру YAML не понравится, если Вы напутаете с отступами. Помните эти простые советы, когда добавляете код PHP в файл YAML: @@ -815,7 +817,7 @@ } </propel> <doctrine> -Метод `retrieveActiveJob` получает объект `Doctrine_Query` сформированный +Метод `retrieveActiveJob()` получает объект `Doctrine_Query` сформированный данным маршрутом: [php] -- You received this message because you are subscribed to the Google Groups "symfony SVN" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-svn?hl=en.
