Suche senden
Hochladen
第49回Php勉強会@関東 Datasource
•
Als KEY, PDF herunterladen
•
1 gefällt mir
•
1,371 views
Kaz Watanabe
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 31
Jetzt herunterladen
Empfohlen
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
camp_drupal_ua
Zf Zend Db by aida
Zf Zend Db by aida
waraiotoko
What's new in the Drupal 7 API?
What's new in the Drupal 7 API?
Alexandru Badiu
Resource Routing in ExpressionEngine
Resource Routing in ExpressionEngine
MichaelRog
PHP and Rich Internet Applications
PHP and Rich Internet Applications
elliando dias
Building a horizontally scalable API in php
Building a horizontally scalable API in php
Wade Womersley
Doctrine MongoDB ODM (PDXPHP)
Doctrine MongoDB ODM (PDXPHP)
Kris Wallsmith
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Hiroshi Shibamura
Empfohlen
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
Nickolay Shmalenuk.Render api eng.DrupalCamp Kyiv 2011
camp_drupal_ua
Zf Zend Db by aida
Zf Zend Db by aida
waraiotoko
What's new in the Drupal 7 API?
What's new in the Drupal 7 API?
Alexandru Badiu
Resource Routing in ExpressionEngine
Resource Routing in ExpressionEngine
MichaelRog
PHP and Rich Internet Applications
PHP and Rich Internet Applications
elliando dias
Building a horizontally scalable API in php
Building a horizontally scalable API in php
Wade Womersley
Doctrine MongoDB ODM (PDXPHP)
Doctrine MongoDB ODM (PDXPHP)
Kris Wallsmith
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Introduction to DBIx::Lite - Kyoto.pm tech talk #2
Hiroshi Shibamura
Lithium Best
Lithium Best
Richard McIntyre
Introducing Assetic (NYPHP)
Introducing Assetic (NYPHP)
Kris Wallsmith
Current state-of-php
Current state-of-php
Richard McIntyre
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
テストデータどうしてますか?
テストデータどうしてますか?
Yuki Shibazaki
Comparing 30 MongoDB operations with Oracle SQL statements
Comparing 30 MongoDB operations with Oracle SQL statements
Lucas Jellema
Introducing CakeEntity
Introducing CakeEntity
Basuke Suzuki
Silex meets SOAP & REST
Silex meets SOAP & REST
Hugo Hamon
Introducing CakeEntity
Introducing CakeEntity
Basuke Suzuki
Jqeury ajax plugins
Jqeury ajax plugins
Inbal Geffen
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Wp query
Wp query
Savita Soni
New in cakephp3
New in cakephp3
markstory
Tax management-system
Tax management-system
Fahim Faysal Kabir
Database api
Database api
InternetDevels
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Mark Baker
Phpspec tips&tricks
Phpspec tips&tricks
Filip Golonka
The History of PHPersistence
The History of PHPersistence
Hugo Hamon
Drupal Field API. Practical usage
Drupal Field API. Practical usage
Pavel Makhrinsky
Drupal Render API
Drupal Render API
Pavel Makhrinsky
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
Christos Gotzaridis
Powerpoint
Powerpoint
cchannasch
Weitere ähnliche Inhalte
Was ist angesagt?
Lithium Best
Lithium Best
Richard McIntyre
Introducing Assetic (NYPHP)
Introducing Assetic (NYPHP)
Kris Wallsmith
Current state-of-php
Current state-of-php
Richard McIntyre
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
テストデータどうしてますか?
テストデータどうしてますか?
Yuki Shibazaki
Comparing 30 MongoDB operations with Oracle SQL statements
Comparing 30 MongoDB operations with Oracle SQL statements
Lucas Jellema
Introducing CakeEntity
Introducing CakeEntity
Basuke Suzuki
Silex meets SOAP & REST
Silex meets SOAP & REST
Hugo Hamon
Introducing CakeEntity
Introducing CakeEntity
Basuke Suzuki
Jqeury ajax plugins
Jqeury ajax plugins
Inbal Geffen
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Wp query
Wp query
Savita Soni
New in cakephp3
New in cakephp3
markstory
Tax management-system
Tax management-system
Fahim Faysal Kabir
Database api
Database api
InternetDevels
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Mark Baker
Phpspec tips&tricks
Phpspec tips&tricks
Filip Golonka
The History of PHPersistence
The History of PHPersistence
Hugo Hamon
Drupal Field API. Practical usage
Drupal Field API. Practical usage
Pavel Makhrinsky
Drupal Render API
Drupal Render API
Pavel Makhrinsky
Was ist angesagt?
(20)
Lithium Best
Lithium Best
Introducing Assetic (NYPHP)
Introducing Assetic (NYPHP)
Current state-of-php
Current state-of-php
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
テストデータどうしてますか?
テストデータどうしてますか?
Comparing 30 MongoDB operations with Oracle SQL statements
Comparing 30 MongoDB operations with Oracle SQL statements
Introducing CakeEntity
Introducing CakeEntity
Silex meets SOAP & REST
Silex meets SOAP & REST
Introducing CakeEntity
Introducing CakeEntity
Jqeury ajax plugins
Jqeury ajax plugins
Future of HTTP in CakePHP
Future of HTTP in CakePHP
Wp query
Wp query
New in cakephp3
New in cakephp3
Tax management-system
Tax management-system
Database api
Database api
Looping the Loop with SPL Iterators
Looping the Loop with SPL Iterators
Phpspec tips&tricks
Phpspec tips&tricks
The History of PHPersistence
The History of PHPersistence
Drupal Field API. Practical usage
Drupal Field API. Practical usage
Drupal Render API
Drupal Render API
Andere mochten auch
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
Christos Gotzaridis
Powerpoint
Powerpoint
cchannasch
οδηγιες φυσικης χημειας βιολογίας B ΓΕΛ 2012 13
οδηγιες φυσικης χημειας βιολογίας B ΓΕΛ 2012 13
Christos Gotzaridis
Casp Webcast Intro
Casp Webcast Intro
junesteward
Mapping an all-weather Tour de France
Mapping an all-weather Tour de France
dbyhundred
Future Agenda Future Of Identity
Future Agenda Future Of Identity
Future Agenda
Ο ηλεκτρισμος στο σπιτι μας εκπαιδευτικο σεναριο
Ο ηλεκτρισμος στο σπιτι μας εκπαιδευτικο σεναριο
Christos Gotzaridis
Evaluation For Final Products
Evaluation For Final Products
benjo7
Motivation : it Matters
Motivation : it Matters
Manish Pandit
Ace ppt for asean japan energy efficient conference-final
Ace ppt for asean japan energy efficient conference-final
benisuryadi
LSAS mokymai 2010 04 08
LSAS mokymai 2010 04 08
mkarciauskas
Subwayseries
Subwayseries
junesteward
Where Media Meets Mobile May 2010
Where Media Meets Mobile May 2010
Hugh Griffiths
Θεματικη οργανωση της Φυσικής Γ΄Γυμν.
Θεματικη οργανωση της Φυσικής Γ΄Γυμν.
Christos Gotzaridis
Acacia Research and Learning Forum - Day 1: Introduction
Acacia Research and Learning Forum - Day 1: Introduction
Acacia Research & Learning Forum 2009
Todas somos unha ! :)
Todas somos unha ! :)
Carlor Garcia Conde
Ipeec workshop, 18 20 oct 2011 (beni-asean energy efficiency action plan) pub...
Ipeec workshop, 18 20 oct 2011 (beni-asean energy efficiency action plan) pub...
benisuryadi
E newsletter
E newsletter
Nirankar Singh
Mole η μονάδα χημικής ποσότητας
Mole η μονάδα χημικής ποσότητας
Christos Gotzaridis
Future Agenda Future Of Water
Future Agenda Future Of Water
Future Agenda
Andere mochten auch
(20)
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
θετικά και αρντηικά για κάθε τύπο ερωτήσεων True
Powerpoint
Powerpoint
οδηγιες φυσικης χημειας βιολογίας B ΓΕΛ 2012 13
οδηγιες φυσικης χημειας βιολογίας B ΓΕΛ 2012 13
Casp Webcast Intro
Casp Webcast Intro
Mapping an all-weather Tour de France
Mapping an all-weather Tour de France
Future Agenda Future Of Identity
Future Agenda Future Of Identity
Ο ηλεκτρισμος στο σπιτι μας εκπαιδευτικο σεναριο
Ο ηλεκτρισμος στο σπιτι μας εκπαιδευτικο σεναριο
Evaluation For Final Products
Evaluation For Final Products
Motivation : it Matters
Motivation : it Matters
Ace ppt for asean japan energy efficient conference-final
Ace ppt for asean japan energy efficient conference-final
LSAS mokymai 2010 04 08
LSAS mokymai 2010 04 08
Subwayseries
Subwayseries
Where Media Meets Mobile May 2010
Where Media Meets Mobile May 2010
Θεματικη οργανωση της Φυσικής Γ΄Γυμν.
Θεματικη οργανωση της Φυσικής Γ΄Γυμν.
Acacia Research and Learning Forum - Day 1: Introduction
Acacia Research and Learning Forum - Day 1: Introduction
Todas somos unha ! :)
Todas somos unha ! :)
Ipeec workshop, 18 20 oct 2011 (beni-asean energy efficiency action plan) pub...
Ipeec workshop, 18 20 oct 2011 (beni-asean energy efficiency action plan) pub...
E newsletter
E newsletter
Mole η μονάδα χημικής ποσότητας
Mole η μονάδα χημικής ποσότητας
Future Agenda Future Of Water
Future Agenda Future Of Water
Ähnlich wie 第49回Php勉強会@関東 Datasource
Advanced symfony Techniques
Advanced symfony Techniques
Kris Wallsmith
Zend Framework Study@Tokyo #2
Zend Framework Study@Tokyo #2
Shinya Ohyanagi
The State of Lithium
The State of Lithium
Nate Abele
関西PHP勉強会 php5.4つまみぐい
関西PHP勉強会 php5.4つまみぐい
Hisateru Tanaka
Digital Mayflower - Data Pilgrimage with the Drupal Migrate Module
Digital Mayflower - Data Pilgrimage with the Drupal Migrate Module
Erich Beyrent
Php summary
Php summary
Michelle Darling
Advanced Php - Macq Electronique 2010
Advanced Php - Macq Electronique 2010
Michelangelo van Dam
DrupalCamp Foz - Novas APIs Drupal 7
DrupalCamp Foz - Novas APIs Drupal 7
chuvainc
Open Source Search: An Analysis
Open Source Search: An Analysis
Justin Finkelstein
Php tips-and-tricks4128
Php tips-and-tricks4128
PrinceGuru MS
Framework
Framework
Nguyen Linh
Переход на Scala: босиком по граблям
Переход на Scala: босиком по граблям
Sveta Bozhko
Keeping it Small: Getting to know the Slim Micro Framework
Keeping it Small: Getting to know the Slim Micro Framework
Jeremy Kendall
Unit testing zend framework apps
Unit testing zend framework apps
Michelangelo van Dam
Bag Of Tricks From Iusethis
Bag Of Tricks From Iusethis
Marcus Ramberg
DataMapper
DataMapper
Yehuda Katz
Unit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBenelux
Michelangelo van Dam
Unit testing with zend framework tek11
Unit testing with zend framework tek11
Michelangelo van Dam
The Zen of Lithium
The Zen of Lithium
Nate Abele
Scaling php applications with redis
Scaling php applications with redis
jimbojsb
Ähnlich wie 第49回Php勉強会@関東 Datasource
(20)
Advanced symfony Techniques
Advanced symfony Techniques
Zend Framework Study@Tokyo #2
Zend Framework Study@Tokyo #2
The State of Lithium
The State of Lithium
関西PHP勉強会 php5.4つまみぐい
関西PHP勉強会 php5.4つまみぐい
Digital Mayflower - Data Pilgrimage with the Drupal Migrate Module
Digital Mayflower - Data Pilgrimage with the Drupal Migrate Module
Php summary
Php summary
Advanced Php - Macq Electronique 2010
Advanced Php - Macq Electronique 2010
DrupalCamp Foz - Novas APIs Drupal 7
DrupalCamp Foz - Novas APIs Drupal 7
Open Source Search: An Analysis
Open Source Search: An Analysis
Php tips-and-tricks4128
Php tips-and-tricks4128
Framework
Framework
Переход на Scala: босиком по граблям
Переход на Scala: босиком по граблям
Keeping it Small: Getting to know the Slim Micro Framework
Keeping it Small: Getting to know the Slim Micro Framework
Unit testing zend framework apps
Unit testing zend framework apps
Bag Of Tricks From Iusethis
Bag Of Tricks From Iusethis
DataMapper
DataMapper
Unit testing with zend framework PHPBenelux
Unit testing with zend framework PHPBenelux
Unit testing with zend framework tek11
Unit testing with zend framework tek11
The Zen of Lithium
The Zen of Lithium
Scaling php applications with redis
Scaling php applications with redis
Kürzlich hochgeladen
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Enterprise Knowledge
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Miguel Araújo
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
Michael W. Hawkins
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
hans926745
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Igalia
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Rafal Los
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
Delhi Call girls
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
debabhi2
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Delhi Call girls
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Drew Madelung
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
Allon Mureinik
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Results
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Malak Abu Hammad
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Puma Security, LLC
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Kürzlich hochgeladen
(20)
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Slack Application Development 101 Slides
Slack Application Development 101 Slides
第49回Php勉強会@関東 Datasource
1.
Datasource
id:kaz_29(kaz29) 2010/1/30 49 PHP @
2.
• •( )
(E2) • • • CMS • id:kaz_29(kaz29) • PHP 4 • baker
3.
CakePHP
4.
Datasource
5.
Datasource
6.
Datasource
7.
Datasouce
8.
Datasource • •
MySQL, PostgresSQL http://book.cakephp.org/ja/view/87/DataSources
9.
Datasource • app/config/database.php Database
Datasource http://book.cakephp.org/ja/view/87/DataSources
10.
dbo_source • RDB
Datasourse • mysql,pgsql,sqlite,ms sql,oracle etc... ~/cake/libs/models/datasources
11.
Datasource • CSV Datasource
http://bakery.cakephp.org/articles/view/csv-datasource-for- reading-your-csv-files • Twitter Datasource http://bakery.cakephp.org/articles/view/twitter-datasource • CouchDB datasource for CakePHP http://github.com/jperras/divan/blob/master • mongoDB datasource for cakephp http://github.com/ichikaway/mongoDB-Datasource ...
12.
Datasource <?php class DATABASE_CONFIG {
datasource var $csv = array( 'datasource' => 'csv', 'path' => '.csv', 'extension' => 'csv', 'readonly' => true, 'recursive' => false, ); } APP/config/database.php database
13.
Datasource //
database <?php class User extends Model { var $useDbConfig = 'csv' ; } database
14.
Datasource class FooController extends
AppController { var $uses = array('User'); function index() { $users = $this->User->find('all') ; ..... } }
15.
atomfeed Datasouce
16.
17.
• app/models/datasources •
hoge_source.php • HogeSource • DataSource
18.
Method
19.
Method • listSources - •
describe - • calculate - COUNT(*)
20.
listSource function listSources() { return
array('bookmarks') ; }
21.
describe function describe(&$model)
{ return array( 'tag' => array( 'type' => 'string', 'null' => true, 'default' => null, 'length' => 512, ), ); }
22.
caluculate function calculate(
&$model, $func, $params = array()) { return array('count' => true); }
23.
method • create - •
update - • read - • delete -
24.
• create(&$model, $fields
= array(), $values = array()) • update(&$model, $fields = array(), $values = array()) $model->id $model->alias
25.
• delete($model, $id
= null)
26.
• read(&$model, $queryData
= array()) $queryData Array ( [conditions] => Array ( [feed] => http://b.hatena.ne.jp/hoge/atomfeed ) [fields] => Array([count] => 1) [joins] => Array() [limit] => [offset] => [order] => Array([0] => ) [page] => 1 [group] => [callbacks] => 1 )
27.
read function read(&$model, $query) {
if ($model->findQueryType === 'count') { // .... $result = array(array(array(‘count’=>$count))); } else { // .... $result = array(array($model->alias =>[ ]))); } return $result ; }
28.
29.
• 1.2
Datasource Plugin • 1.3 beta Plugin
30.
Datasouce Datasouce
(^^
31.
>< question?
Hinweis der Redaktion
&#x6700;&#x8FD1;&#x306F;&#x3001;&#x307B;&#x307C;&#x4E8C;&#x5E74;&#x3076;&#x308A;&#x4F4D;&#x3067;PC&#x30B5;&#x30A4;&#x30C8;&#x3092;&#x4F5C;&#x3063;&#x3066;&#x307E;&#x3059;&#x3002;
&#x5927;&#x4F53;&#x306E;&#x4EBA;&#x6570;&#x3092;&#x30E1;&#x30E2;&#x308B;
Model&#x306F;DB&#x3068;&#x3084;&#x308A;&#x3068;&#x308A;&#x3092;&#x3059;&#x308B;&#x3082;&#x306E;&#x3067;&#x306F;&#x306A;&#x3044;&#x3002;
&#x6A19;&#x6E96;&#x3067;&#x7528;&#x610F;&#x3055;&#x308C;&#x3066;&#x3044;&#x308B;datasource &#x901A;&#x5E38;&#x306F;&#x3053;&#x3053;&#x306B;&#x3067;&#x3066;&#x3044;&#x308B;RDB&#x30A2;&#x30AF;&#x30BB;&#x30B9;&#x7528;&#x306E;Datasource&#x3092;&#x4F7F;&#x3063;&#x3066;&#x308B;&#x3068;&#x601D;&#x3044;&#x307E;&#x3059;&#x3002; dbo_source&#x306F;RDB&#x306B;&#x5171;&#x901A;&#x3059;&#x308B;&#x51E6;&#x7406;&#x3092;&#x307E;&#x3068;&#x3081;&#x305F;datasource&#x306E;&#x89AA; driver &#x3067;&#x6307;&#x5B9A;&#x3057;&#x305F;dbo_source&#x304C;&#x52D5;&#x4F5C;&#x3059;&#x308B;
&#x3058;&#x3083;&#x3041;&#x5B9F;&#x969B;&#x3069;&#x3093;&#x306A;Datasource&#x304C;&#x3042;&#x308B;&#x306E;&#x304B;&#x3002;&#x3002;&#x3002; CSV &#x4E00;&#x884C;&#x76EE;&#x3092;&#x8AAD;&#x3093;&#x3067;&#x30D5;&#x30A3;&#x30FC;&#x30EB;&#x30C9;&#x5B9A;&#x7FA9;&#x3092;&#x4F5C;&#x3063;&#x305F;&#x308A;&#x8272;&#x3005;&#x3057;&#x3066;&#x307E;&#x3059;&#x3002; CouchDB &#x53BB;&#x5E74;&#x306E;CakeMatsuri&#x306B;&#x3082;&#x6765;&#x3066;&#x3082;&#x3089;&#x3063;&#x305F;joel&#x4F5C; mongoDB &#x3053;&#x306E;&#x5F8C;&#x767A;&#x8868;&#x3059;&#x308B;&#x5E02;&#x5DDD;&#x3055;&#x3093;&#x4F5C;
&#x4ECA;&#x56DE;&#x306F;&#x3061;&#x3087;&#x3063;&#x3068;&#x6642;&#x9593;&#x304C;&#x306A;&#x304B;&#x3063;&#x305F;&#x306E;&#x3067;(^^;&#x53C2;&#x7167;&#x7CFB;&#x306E;&#x307F;&#x4F5C;&#x3063;&#x3066;&#x307F;&#x307E;&#x3057;&#x305F;&#x3002; CakePHP&#x3060;&#x3068;&#x7D50;&#x69CB;&#x7C21;&#x5358; &#x30DA;&#x30FC;&#x30B8;&#x30F3;&#x30B0;&#x306F; ?of=21 &#x3060;&#x3051; &#x30DA;&#x30FC;&#x30B8;&#x30EA;&#x30F3;&#x30AF;&#x306E;&#x8868;&#x793A;&#x306F;&#x3002;&#x3002;&#x3002; &#x4EE5;&#x5916;&#x306B;&#x9762;&#x5012; Datasource&#x3092;&#x4F7F;&#x3063;&#x305F;&#x4F8B;-1 &#x3088;&#x304F;&#x898B;&#x308B;&#x611F;&#x3058;&#x3067;&#x3059;&#x306D; Datasource&#x3092;&#x4F7F;&#x3063;&#x305F;&#x4F8B;-2 &#x30DA;&#x30FC;&#x30B8;&#x5207;&#x308A;&#x66FF;&#x3048;&#x3092;&#x3064;&#x3051;&#x3066;&#x307F;&#x305F;&#x3001;tag&#x3067;&#x691C;&#x7D22;&#x3068;&#x304B;&#x3067;&#x304D;&#x308B;&#x3088;&#x3046;&#x306B;&#x3057;&#x3066;&#x307F;&#x305F;&#x3002; Datasource&#x3067;&#x5B9F;&#x88C5;&#x3059;&#x308B;&#x3068; &#x3044;&#x3064;&#x3082;&#x306E; db &#x304C;Datasource &#x306A; Model &#x3068; &#x540C;&#x3058;&#x3088;&#x3046;&#x306B; paginator &#x304C;&#x4F7F;&#x3048;&#x307E;&#x3059;&#xFF01;
calculate&#x306F;&#x30DE;&#x30CB;&#x30E5;&#x30A2;&#x30EB;&#x306E;&#x300C;&#x5B9F;&#x88C5;&#x3057;&#x306A;&#x3051;&#x308C;&#x3070;&#x306A;&#x3089;&#x306A;&#x3044;&#x30E1;&#x30BD;&#x30C3;&#x30C9;&#x300D; &#x306B;&#x306F;&#x8F09;&#x3063;&#x3066;&#x307E;&#x305B;&#x3093;&#x304C;&#x5FC5;&#x8981;&#x3067;&#x3059; &#x7C21;&#x5358;&#x306A;read,write&#x306A;&#x3089;&#x5FC5;&#x8981;&#x306A;&#x3044;&#x3067;&#x3059;&#x304C;&#x3001; &#x3053;&#x308C;&#x304C;&#x306A;&#x3044;&#x3068;paginate&#x3067;&#x304D;&#x306A;&#x3044;&#x3067;&#x3059;&#x3002; &#x3000;&#x3000;&#x3088;&#x306D;&#xFF1F;&#x5E02;&#x5DDD;&#x3055;&#x3093;&#xFF1F;
&#x30C6;&#x30FC;&#x30D6;&#x30EB;&#x3092;&#x5217;&#x6319;
&#x30D5;&#x30A3;&#x30FC;&#x30EB;&#x30C9;&#x306E;&#x4E00;&#x89A7;&#x3068;&#x578B;&#x306A;&#x3069;&#x306E;&#x30B9;&#x30AD;&#x30FC;&#x30DE;&#x60C5;&#x5831;&#x3092;&#x8FD4;&#x3059;&#x3002; dbo&#x3067;&#x306F;DB&#x306B;DESCRIBE&#x3057;&#x3066;&#x53D6;&#x5F97;&#x3057;&#x3066;&#x3044;&#x308B;&#x3002; &#x3000;queryLog&#x306B;&#x51FA;&#x3066;&#x304F;&#x308B;DESCRIBE&#x306F;dbo&#x306E;&#x3053;&#x306E;&#x90E8;&#x5206;&#x304C;&#x52D5;&#x3044;&#x3066;&#x3044;&#x308B; &#x3053;&#x3053;&#x306B;&#x5B9A;&#x7FA9;&#x304C;&#x7121;&#x3044;&#x3068;&#x3001;&#x4F5C;&#x6210;&#x3001;&#x66F4;&#x65B0;&#x51E6;&#x7406;&#x306B;&#x30C7;&#x30FC;&#x30BF;&#x304C;&#x6E21;&#x3063;&#x3066;&#x3053;&#x306A;&#x3044;&#x3002; default&#x5024;&#x3092;&#x5B9A;&#x7FA9;&#x3059;&#x308B;&#x3068;save&#x6642;&#x306B;&#x6307;&#x5B9A;&#x3055;&#x308C;&#x3066;&#x3044;&#x306A;&#x3044;&#x30D5;&#x30A3;&#x30FC;&#x30EB;&#x30C9;&#x3082;&#x81EA;&#x52D5;&#x3067;&#x4F5C;&#x3089;&#x308C;&#x308B;&#x3002; created,modified&#x306F;&#x3057;&#x3066;&#x3044;&#x304C;&#x306A;&#x3051;&#x308C;&#x3070;&#x73FE;&#x5728;&#x6642;&#x523B;&#x304C;&#x6307;&#x5B9A;&#x3055;&#x308C;&#x308B;&#x3002;
count(*),min,max&#x306A;&#x3069;&#x7279;&#x6B8A;&#x306A;query&#x3092;&#x5B9A;&#x7FA9; &#x901A;&#x5E38;&#x3053;&#x308C;&#x3060;&#x3051;&#x3067;&#x3044;&#x3051;&#x308B;&#x30CF;&#x30BA;
&#x3053;&#x306E;&#x3046;&#x3061;&#x6700;&#x4F4E;&#x4E00;&#x3064;&#x304C;&#x5FC5;&#x8981;
&#x30E2;&#x30C7;&#x30EB;&#x306E;&#x30A4;&#x30F3;&#x30B9;&#x30BF;&#x30F3;&#x30B9;&#x3068;&#x3001;&#x30D5;&#x30A3;&#x30FC;&#x30EB;&#x30C9;&#x540D;&#x3001;&#x30C7;&#x30FC;&#x30BF;&#x306E;&#x914D;&#x5217;&#x304C;&#x308F;&#x305F;&#x3063;&#x3066;&#x304D;&#x307E;&#x3059;&#x3002; $model->id &#x3068;&#x304B; $model->alias &#x3068;&#x304B;&#x3092;&#x4F7F;&#x3044;&#x3064;&#x3064;&#x30C7;&#x30FC;&#x30BF;&#x3092;&#x66F4;&#x65B0;&#x3059;&#x308B;&#x611F;&#x3058;&#x3067;&#x3059;&#x3002;
&#x30D7;&#x30E9;&#x30A4;&#x30DE;&#x30EA;&#x30FC;&#x30AD;&#x30FC;&#x3092;&#x53D7;&#x3051;&#x53D6;&#x308C;&#x308B;&#x306E;&#x3067;&#x305D;&#x308C;&#x3092;&#x4F7F;&#x3063;&#x3066;&#x524A;&#x9664;
&#x304A;&#x305D;&#x3089;&#x304F;read&#x304C;&#x4E00;&#x756A;&#x8907;&#x96D1;&#x306B;&#x306A;&#x308B;&#x3057;&#x3001;&#x5B9F;&#x88C5;&#x3057;&#x3088;&#x3046;&#x3068;&#x3059;&#x308B;&#x3068;&#x7D50;&#x69CB;&#x306F;&#x307E;&#x308B;&#x304B;&#x3082; queryData&#x306B;&#x3053;&#x3093;&#x306A;&#x611F;&#x3058;&#x306E;hash&#x304C;&#x5165;&#x3063;&#x3066;&#x3044;&#x308B; &#x3053;&#x308C;&#x3092;&#x5143;&#x306B;&#x30C7;&#x30FC;&#x30BF;&#x3092;&#x53D6;&#x3063;&#x3066;&#x304F;&#x308B; &#x3053;&#x308C;&#x306F;feed&#x306B;&#x5927;&#x3057;&#x3066; COUNT(*)&#x3059;&#x308B;&#x3068;&#x304D;&#x306E;&#x30C0;&#x30F3;&#x30D7;&#x3067;&#x3059;&#x3002;
$model->findQueryType &#x306B; find&#x306E;&#x7B2C;&#x4E00;&#x5F15;&#x6570;&#x3067;&#x6307;&#x5B9A;&#x3057;&#x305F;&#x691C;&#x7D22;&#x65B9;&#x6CD5;&#x304C;&#x5165;&#x3063;&#x3066;&#x3044;&#x308B; count&#x304C;&#x3061;&#x3083;&#x3093;&#x3068;&#x52D5;&#x304B;&#x306A;&#x3044;&#x3068;paginete&#x3067;&#x304D;&#x306A;&#x3044;&#x3002; Model&#x3067;save(&#x66F4;&#x65B0;),delete&#x6642;&#x306B;&#x306F;&#x30EC;&#x30B3;&#x30FC;&#x30C9;&#x306E;&#x5B58;&#x5728;&#x3092;&#x30C1;&#x30A7;&#x30C3;&#x30AF;&#x3057;&#x3066;&#x3044;&#x308B;&#x306E;&#x3067;&#x3053;&#x308C;&#x304C;&#x901A;&#x3089;&#x306A;&#x3044;&#x3068;&#x4F55;&#x3082;&#x52D5;&#x304B;&#x306A;&#x3044; &#x958B;&#x767A;&#x306E;&#x6700;&#x521D;&#x306E;&#x6642;&#x306F;&#x304B;&#x306A;&#x3089;&#x305A; 1&#x4EF6;&#x3068;&#x8FD4;&#x308B;&#x3088;&#x3046;&#x306B;&#x3057;&#x3066;&#x305F;...(^^; all,first&#x3069;&#x3061;&#x3089;&#x3082; model&#x3067;all&#x3057;&#x305F;&#x6642;&#x3068;&#x540C;&#x3058;&#x5F62;&#x5F0F;&#x3092;&#x8FD4;&#x3059;&#x3002;model&#x5185;&#x3067;first&#x306E;&#x6642;&#x306F;[0]&#x3092;&#x8FD4;&#x3057;&#x3066;&#x308B;&#x3002;
Jetzt herunterladen