2010-01-01ãã1å¹´éã®è¨äºä¸è¦§
CakePHP Advent Calendar 2010 ã¯ã¿ãªããã®ãã¦ãã¦ãããããã¨ç¥ããã¨ãã§ãã¦ã»ãã¨æ¥½ããã§ããã18æ¥ç®ã®haltããã®authkittenãã©ã°ã¤ã³ã§åç«èªè¨¼ (CakePHP Advent Calendar 2010 18æ¥ç®) ãå¼ãç¶ãã§ã19æ¥ã®è¨äºã¨ãªãã¾ãã â»æ¬æ¥ã®è¨äºã¯ Cakeâ¦
ãã®è¨äºã¯ãSymfony ã¢ããã³ãã«ã¬ã³ãã¼ 2010 ã«åå ãã¦ãã¾ãã Symfony Advent 2010 : ATND Symfonyã¢ããã³ãã«ã¬ã³ãã¼ 2010 | æ¥æ¬Symfonyã¦ã¼ã¶ã¼ä¼ åã®è¨äº: Symfony2 à Doctratorã§å¿«é©ActiveRecordçæ´» @chobi_e Symfony2ã®ã½ã¼ã¹ãåãã¦è¦ãâ¦
éé¢ã®ããæãããããªãã£ãPHPMatsuriã§ããããã®æ¥ã®ååä¸ã®Twitter TLã«æµãã¦ãããPSR-0ãã¨ããåèªãæ°ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ãã¨ä»¥ä¸ã®ãããªãã¼ã¸ãããã¾ãããPHP Standards Working Group:PSR-0 Final Proposalãã®ãã¼ã¸ãè¦ã¦ããããã°ä¸â¦
PHPMatsuriã§æ念ããã¢ããªã¯ä»¥ä¸ã®ãããªä»æ§ã ã£ããã§ãããã»ã»ã» å ¥åç»é¢æ¯ã«actionãæºåãããã§ã¯ãªããå ¥åç»é¢ã¯1ã¤ã®actionã§ããã¦ããã¨ãã°formâconfirmâadd ã®ããã«3ã¤ã®ã¢ã¯ã·ã§ã³ã ãã§å¦çãã 管çç»é¢ã§èªç±ã«ç»é¢æ°ã決ãã¦ãå ¥åé â¦
ããã«ãæ¸ãã¤ã¤Githubã®æ¹ã«ãpull requestããã¦ã¿ãããã¨æã£ã¦ããã§ãããç¾ç¶ã®Transitionã³ã³ãã¼ãã³ãã§ä»¥ä¸ã®ç¹ãã¡ãã£ã¨å°ã£ãã®ã§æãå ¥ãã¾ããã - é·ç§»å ã®ã¢ã¯ã·ã§ã³ã®æå®ãã¢ã¯ã·ã§ã³åã§ããè¡ããªã
ã¨ããããã§Transitionã³ã³ãã¼ãã³ãã便å©ã«ä½¿ããã¦ããã£ã¦ããã®ã§ããããã®ã³ã³ãã¼ãã³ãã¯ãã®æ§æ ¼ä¸ä»¥ä¸ã®ãããªå¶ç´ãããã¾ãã - ã¢ã¯ã·ã§ã³ãã¨ã«ããªãã¼ã·ã§ã³ãè¡ãå ´åã¯ãããã¨ã«ã¢ãã«ãå¿ è¦ã«ãªãç»é¢ãã¨ã«ãã£ã¡ãã¨ã¢ãã«ãå²ãå½â¦
ã¨ã£ã¦ã便å©ãªTransitionã³ã³ãã¼ãã³ãã§ãããèªåã使ã£ãã¨ãã«ã¯ï¼ã¤ã¯ã¾ã£ããã¨ãããã¾ãããããã¯ç¢ºèªç»é¢ã§ Transtion#automate ã使ç¨ããå ´åã®æµãã§ãã
checkData/checkPrevã«ç¶ã㦠Transition#automate ã§ãããããã¾ããããã£ã±ã«ãã㨠checkPrev ããå¾ã« checkData ããã¦ãããã¡ã½ããã«ãªãã¾ãã
æåã«æ¸ãããµã³ãã«ã§ã¯å®äºç»é¢ã«åºã¦ãã Transition#checkPrev ã ãã©ããã®èª¬æãããæ¹ã Transition#automate ã¯ãããããããªãã®ã§ãã£ã¡ãå ã«ãTransition#checkPrev ã¯å¼æ°ã«æå®ããã¢ã¯ã·ã§ã³ããã¡ããã¨ãã¦ãããããã§ãã¯ãã¾ããã©ãâ¦
Transition#checkData ã¯è¤æ°å ¥åç»é¢ã®1ç»é¢ç®ã§ä½¿ç¨ãããã¨ã«ãªãã¡ã½ããã§ããCakePHPã§ã¯ä»¥ä¸ã®ãããªãã¿ã¼ã³ã®ã³ã¼ããããæ¸ãã¨æããåä¸ã¢ã¯ã·ã§ã³ã§GET/POSTã§å¦çãããã¦ãPOSTã§ããã¨ãã¯ä¿åãã¦ãªãã¤ã¬ã¯ãã¿ãããªæãã class FooContâ¦
æ¨æ¥ã®ããã°ã§ãã¡ãã£ã¨æ¸ãããã©ãä»äºã§ä¾¿å©ã«ä½¿ããã¦ããã£ã¦ããTransitionã³ã³ãã¼ãã³ãã«ã¤ãã¦ããã¤ãã®è¨äºã«åãã¦æ¸ãã¦ã¿ããæ¬å½ã«ä¾¿å©ãªã®ã«ãã¾ãæ å ±ããªãã®ã¯ãã¿ããªãªãã®åé¡ããªãããã£ã¨å°å ¥ã§ãã¦ãããããªã®ããªï¼Transitioâ¦
1æ³2æ¥ã®ããã«ã½ã³ã¤ãã³ããPHPMatsuriãã«åå ãã¦ããããã¡ã®ä¼ç¤¾(E2)ãã¹ãã³ãµã¼ã«ãªã£ã¦ããããããã²ã¹ããæ¥ããã¨ãããã£ãã®ã§å³åå 決å®ã¨ããæããä»äºã§ã¯CakePHPã使ã£ã¦éçºããã¦ããã®ã§ãCakePHPã¯ãã¡ããLithiumããããæ°ã«ãªã£ã¦â¦
å ææ«ã«è¡ãããPHPcon2010ã®2æ¥ç®ã«åå ãã¦ããããã¨ãã¨éé¢ã®äºå®ããã£ããããããªãããªãã¨æã£ã¦ããã ããäºæ³å¤ã«æ©ãçµãã£ãã®ã§Rasmusãçã§ã¿ããã£ãã®ã§æ¥é½ãããã¨ã«ãããã¿ããã®ã¯å¾³ä¸¸ããã®æåã³ã¼ãã®ã»ãã·ã§ã³ä»¥éã®ãã®ã§ãã©â¦
ã»ã¼ä¸å¹´ã¶ãã®æ´æ°ããã®éå ¥é¢ãã¦ãããããå ¥é¢ããç åã¯æ¥æ§ããçãæèµ·ããããããè ¹çããã¦ããã°ãããã£ã¦ãç´ããªãã®ã§ææ¥è»ãå¼ãã§ç é¢ã«è¡ã£ããå³å ¥é¢ãææ¥è»ã«ä¹ã£ãã®ãåãã¦ã ããå ¥é¢ããã®ãåãã¦ã ã£ãããããã3é±éç¹æ»´ã ãâ¦