Enviar pesquisa
Carregar
Phpで作るmovable typeプラグイン
•
Transferir como KEY, PDF
•
0 gostou
•
3,833 visualizações
Yuji Takayama
Seguir
PHP
Leia menos
Leia mais
Denunciar
Compartilhar
Denunciar
Compartilhar
1 de 55
Baixar agora
Recomendados
Building Your First Widget
Building Your First Widget
Chris Wilcoxson
CakeFest 2013 keynote
CakeFest 2013 keynote
José Lorenzo Rodríguez Urdaneta
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Presentation1
Presentation1
Rahadyan Gusti
Php & my sql
Php & my sql
Norhisyam Dasuki
PHP Tips & Tricks
PHP Tips & Tricks
Radek Benkel
PHP and MySQL
PHP and MySQL
Sanketkumar Biswas
Barcelona.pm Curs1211 sess01
Barcelona.pm Curs1211 sess01
Javier Arturo Rodríguez
Recomendados
Building Your First Widget
Building Your First Widget
Chris Wilcoxson
CakeFest 2013 keynote
CakeFest 2013 keynote
José Lorenzo Rodríguez Urdaneta
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Presentation1
Presentation1
Rahadyan Gusti
Php & my sql
Php & my sql
Norhisyam Dasuki
PHP Tips & Tricks
PHP Tips & Tricks
Radek Benkel
PHP and MySQL
PHP and MySQL
Sanketkumar Biswas
Barcelona.pm Curs1211 sess01
Barcelona.pm Curs1211 sess01
Javier Arturo Rodríguez
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
Rafael Dohms
Growing jQuery
Growing jQuery
gueste8d8bc
The Origin of Lithium
The Origin of Lithium
Nate Abele
"Coffee Script" in Brief
"Coffee Script" in Brief
Nat Weerawan
Coding website
Coding website
PutuMahendra Wijaya
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
Pierre MARTIN
JavaOne 2017 | JShell: The Ultimate Missing Tool
JavaOne 2017 | JShell: The Ultimate Missing Tool
Hakan Özler
What's New in Perl? v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
Ricardo Signes
Transparent Object Persistence with FLOW3
Transparent Object Persistence with FLOW3
Karsten Dambekalns
Ruby - Uma Introdução
Ruby - Uma Introdução
Ígor Bonadio
Can't Miss Features of PHP 5.3 and 5.4
Can't Miss Features of PHP 5.3 and 5.4
Jeff Carouth
Dades i operadors
Dades i operadors
Alex Muntada Duran
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
Nate Abele
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
New in cakephp3
New in cakephp3
markstory
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
Chad Gray
Hidden treasures of Ruby
Hidden treasures of Ruby
Tom Crinson
PhoneGap: Local Storage
PhoneGap: Local Storage
Ivano Malavolta
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Luis Curo Salvatierra
Introdução ao Perl 6
Introdução ao Perl 6
garux
Document Classification In PHP
Document Classification In PHP
Ian Barber
Mais conteúdo relacionado
Mais procurados
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
Rafael Dohms
Growing jQuery
Growing jQuery
gueste8d8bc
The Origin of Lithium
The Origin of Lithium
Nate Abele
"Coffee Script" in Brief
"Coffee Script" in Brief
Nat Weerawan
Coding website
Coding website
PutuMahendra Wijaya
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
Pierre MARTIN
JavaOne 2017 | JShell: The Ultimate Missing Tool
JavaOne 2017 | JShell: The Ultimate Missing Tool
Hakan Özler
What's New in Perl? v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
Ricardo Signes
Transparent Object Persistence with FLOW3
Transparent Object Persistence with FLOW3
Karsten Dambekalns
Ruby - Uma Introdução
Ruby - Uma Introdução
Ígor Bonadio
Can't Miss Features of PHP 5.3 and 5.4
Can't Miss Features of PHP 5.3 and 5.4
Jeff Carouth
Dades i operadors
Dades i operadors
Alex Muntada Duran
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
Nate Abele
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
New in cakephp3
New in cakephp3
markstory
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
Chad Gray
Hidden treasures of Ruby
Hidden treasures of Ruby
Tom Crinson
PhoneGap: Local Storage
PhoneGap: Local Storage
Ivano Malavolta
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Luis Curo Salvatierra
Mais procurados
(20)
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
“Writing code that lasts” … or writing code you won’t hate tomorrow. - PHP Yo...
Growing jQuery
Growing jQuery
The Origin of Lithium
The Origin of Lithium
"Coffee Script" in Brief
"Coffee Script" in Brief
Coding website
Coding website
Internationalizing CakePHP Applications
Internationalizing CakePHP Applications
JavaOne 2017 | JShell: The Ultimate Missing Tool
JavaOne 2017 | JShell: The Ultimate Missing Tool
What's New in Perl? v5.10 - v5.16
What's New in Perl? v5.10 - v5.16
Transparent Object Persistence with FLOW3
Transparent Object Persistence with FLOW3
Ruby - Uma Introdução
Ruby - Uma Introdução
Can't Miss Features of PHP 5.3 and 5.4
Can't Miss Features of PHP 5.3 and 5.4
Dades i operadors
Dades i operadors
Future of HTTP in CakePHP
Future of HTTP in CakePHP
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
New in cakephp3
New in cakephp3
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
Hidden treasures of Ruby
Hidden treasures of Ruby
PhoneGap: Local Storage
PhoneGap: Local Storage
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Desarrollo de módulos en Drupal e integración con dispositivos móviles
Semelhante a Phpで作るmovable typeプラグイン
Introdução ao Perl 6
Introdução ao Perl 6
garux
Document Classification In PHP
Document Classification In PHP
Ian Barber
Daily notes
Daily notes
meghendra168
Top 10 php classic traps
Top 10 php classic traps
Damien Seguy
究極のコントローラを目指す
究極のコントローラを目指す
Yasuo Harada
20 modules i haven't yet talked about
20 modules i haven't yet talked about
Tatsuhiko Miyagawa
The Perl6 Type System
The Perl6 Type System
abrummett
PHP record- with all programs and output
PHP record- with all programs and output
KavithaK23
Bag of tricks
Bag of tricks
brian d foy
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order Functions
David Golden
What Is Security
What Is Security
Jason Ragsdale
Document Classification In PHP - Slight Return
Document Classification In PHP - Slight Return
Ian Barber
Climbing the Abstract Syntax Tree (php[world] 2019)
Climbing the Abstract Syntax Tree (php[world] 2019)
James Titcumb
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Masahiro Nagano
ランダム文字ぽいものをつくる
ランダム文字ぽいものをつくる
Tetsuji Koyama
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (IPC Fall 2017)
James Titcumb
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
James Titcumb
Functional Pe(a)rls version 2
Functional Pe(a)rls version 2
osfameron
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
James Titcumb
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
James Titcumb
Semelhante a Phpで作るmovable typeプラグイン
(20)
Introdução ao Perl 6
Introdução ao Perl 6
Document Classification In PHP
Document Classification In PHP
Daily notes
Daily notes
Top 10 php classic traps
Top 10 php classic traps
究極のコントローラを目指す
究極のコントローラを目指す
20 modules i haven't yet talked about
20 modules i haven't yet talked about
The Perl6 Type System
The Perl6 Type System
PHP record- with all programs and output
PHP record- with all programs and output
Bag of tricks
Bag of tricks
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order Functions
What Is Security
What Is Security
Document Classification In PHP - Slight Return
Document Classification In PHP - Slight Return
Climbing the Abstract Syntax Tree (php[world] 2019)
Climbing the Abstract Syntax Tree (php[world] 2019)
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
ランダム文字ぽいものをつくる
ランダム文字ぽいものをつくる
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (IPC Fall 2017)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Climbing the Abstract Syntax Tree (ScotlandPHP 2018)
Functional Pe(a)rls version 2
Functional Pe(a)rls version 2
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (Bulgaria PHP 2016)
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
Climbing the Abstract Syntax Tree (PHP South Africa 2017)
Mais de Yuji Takayama
Movable Type 7 のすべて
Movable Type 7 のすべて
Yuji Takayama
詳説 Movable type 7
詳説 Movable type 7
Yuji Takayama
Data API ことはじめ
Data API ことはじめ
Yuji Takayama
概説 Data API v3
概説 Data API v3
Yuji Takayama
詳説 Data api mtddc 拡張版 v3対応
詳説 Data api mtddc 拡張版 v3対応
Yuji Takayama
初めての Data api cms どうでしょう - 大阪夏の陣
初めての Data api cms どうでしょう - 大阪夏の陣
Yuji Takayama
Data apiで実現 進化するwebの世界
Data apiで実現 進化するwebの世界
Yuji Takayama
初めての Data API CMS どうでしょう - 仙台編 -
初めての Data API CMS どうでしょう - 仙台編 -
Yuji Takayama
Movable Type for AWS Hands-on
Movable Type for AWS Hands-on
Yuji Takayama
初めての Data api
初めての Data api
Yuji Takayama
Data API + AWS = (CMS どうでしょう 札幌編)
Data API + AWS = (CMS どうでしょう 札幌編)
Yuji Takayama
Data API 2.0
Data API 2.0
Yuji Takayama
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Yuji Takayama
MT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWS
Yuji Takayama
Data api workshop at Co-Edo
Data api workshop at Co-Edo
Yuji Takayama
Mtとクラウドと私
Mtとクラウドと私
Yuji Takayama
Movable Type 6 overview spec3
Movable Type 6 overview spec3
Yuji Takayama
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Yuji Takayama
Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2
Yuji Takayama
Mtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 Overview
Yuji Takayama
Mais de Yuji Takayama
(20)
Movable Type 7 のすべて
Movable Type 7 のすべて
詳説 Movable type 7
詳説 Movable type 7
Data API ことはじめ
Data API ことはじめ
概説 Data API v3
概説 Data API v3
詳説 Data api mtddc 拡張版 v3対応
詳説 Data api mtddc 拡張版 v3対応
初めての Data api cms どうでしょう - 大阪夏の陣
初めての Data api cms どうでしょう - 大阪夏の陣
Data apiで実現 進化するwebの世界
Data apiで実現 進化するwebの世界
初めての Data API CMS どうでしょう - 仙台編 -
初めての Data API CMS どうでしょう - 仙台編 -
Movable Type for AWS Hands-on
Movable Type for AWS Hands-on
初めての Data api
初めての Data api
Data API + AWS = (CMS どうでしょう 札幌編)
Data API + AWS = (CMS どうでしょう 札幌編)
Data API 2.0
Data API 2.0
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
Movable Type for AWS - JAWS-UG 沖縄 CMS祭り!
MT東京03 - Movable Type for AWS
MT東京03 - Movable Type for AWS
Data api workshop at Co-Edo
Data api workshop at Co-Edo
Mtとクラウドと私
Mtとクラウドと私
Movable Type 6 overview spec3
Movable Type 6 overview spec3
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview - New York Perl Mongers Tech Talk
Movable Type 6 Overview SPEC2
Movable Type 6 Overview SPEC2
Mtddc2013: Movable Type 6 Overview
Mtddc2013: Movable Type 6 Overview
Phpで作るmovable typeプラグイン
1.
2.
3.
Dynamic Publishing
...
4.
5.
6.
7.
8.
9.
10.
11.
Block
...
12.
13.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
14.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
15.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
16.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
17.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
18.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
19.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
20.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
21.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
22.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
23.
$repeat true2
$repeat false Block MTIf smarty_block_TAGNAME stash Stash 2 Stash Stash Stash
24.
Function
...
25.
26.
smarty_function_TAGNAME Stash
27.
smarty_function_TAGNAME Stash
28.
smarty_function_TAGNAME Stash
29.
Modifier ...
30.
31.
smarty_modifier_MODIFIERNAME $text
Modifier
32.
smarty_modifier_MODIFIERNAME $text
Modifier
33.
smarty_modifier_MODIFIERNAME $text
Modifier
34.
35.
36.
$mt = MT::get_instance(); $db
= $mt->db(); $args[‘limit’] = 10; $args[‘offset’] = 10; $entries = $db->fetch_entries( $args ); if ( !empty( $entries ) ) { foreach ( $entries as $e ) { // do something... } }
37.
38.
39.
40.
$mt = MT::get_instance(); $db
= $mt->db(); $where = “entry_id = 1 and placement_blog_id = 1”; $extra[‘join’] = array( ‘mt_placement’ => array( ‘condition’ => ‘placement_entry_id = entry_id’ ), ); $extra[‘distinct’] = ‘distinct’; $extra[‘limit’] = 1; require_once( ‘class_mt_entry.php’ ); $class = New Entry; $entries = $class->Find( $where, false, false, $extra ); if ( empty( $entries ) ) return null; $entry = $entries[0];
41.
$mt = MT::get_instance(); $db
= $mt->db(); $sql = “delete from mt_session”; $db->Execute( $sql );
42.
43.
$mt = MT::get_instance(); $db
= $mt->db(); require_once(‘class.mt_entry.php’); $entry = New Entry; $entry->title = ‘Hello, world.”; $entry->blog_id = 1; $entry->author_id = 1; $entry->save();
44.
$mt = MT::get_instance(); $db
= $mt->db(); require_once(‘class.mt_blog.php’); $blog = New Blog; $blog->Load( ‘blog_id = 1’ ); echo $blog->id; echo $blog->blog_page_layout;
45.
46.
47.
require_once(‘class.baseobject.php’); class NewObject extends
BaseObject { public $_table = ‘mt_newobject’; protected $_prefix = ‘newobject_’; protected $_has_meta = true; } ADODB_Active_Record::ClassHasMany( 'NewObject', 'mt_newobject_meta', 'newobject_meta_newobject_id' ); BaseObject::install_meta( ‘newobject’, 'new_meta_column’, ‘vchar’ );
48.
•
BaseObject • • Meta • blog / author / entry BaseObject • entry_id / author_id / blog_id
49.
50.
51.
mtdb.base.php
// Construction public function __construct($user, $password = '’, $dbname = '', $host = '', $port = '', $sock = '') { $this->id = md5(uniqid('MTDatabase',true)); $this->connect($user, $password, $dbname, $host, $port, $sock); ADOdb_Active_Record::SetDatabaseAdapter( $this->conn); # $this->conn->debug = true; }
Notas do Editor
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Baixar agora