This document provides a lesson on New Zealand that includes:
1) A checkup questions about facts about New Zealand like its other name "Aotearoa", when the first travelers arrived, and details about the Maori people.
2) A reading comprehension section with multiple choice questions about New Zealand's climate, agriculture, sports culture, natural attractions, and wildlife.
3) Examples of using the word "turn" in different grammatical contexts.
4) A weather chart showing temperature and rainfall data for different New Zealand cities in summer and winter.
Databarracks and solid fire how to run tier 1 applications in the cloudDatabarracks
This document summarizes a presentation about running tier 1 applications in the cloud. Mark Thomas of Databarracks and Dave Wright of SolidFire discuss common issues with hosting demanding applications in cloud environments, such as lack of vendor support, performance concerns, and security worries. They describe how Databarracks addresses these issues using SolidFire's storage solutions that provide guaranteed quality of service levels and isolation for each customer's volumes. This allows tier 1 applications to meet stringent performance requirements in the cloud.
The document discusses a case that detective J.J. Coal has been asked to investigate. Tom Goode, the nephew of Mrs. Flower, visited the detective because he wants Coal to look into Clare Flower's background and check if she has the right to inherit his aunt's large sum of money. The document provides background on the people involved - Clare Flower, Tom Goode, Mrs. Flower, and Coal - and outlines some of the questions that Tom has about Clare Flower and her potential inheritance.
This document discusses new technologies learned including changing URLs to files, using DeepZoom to magnify images by 500% and arrange overlapping photos, and how WordPress and Joomla websites use plugins, themes, modules and extensions. It also mentions how embedding YouTube videos as files allows offline viewing.
This document lists the 12-year zodiac cycle of the Chinese zodiac and the associated years for each animal sign, including the Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog, Pig, Rat, Ox, Tiger and Rabbit. It provides the years from 1960 through 2022 that correspond with each zodiac sign in the repeating 12-year cycle.
This document introduces a new performance-based advertising program that only charges advertisers for leads that result in calls to the business. The program aims to cut through clutter by targeting ideal customers and includes directional leads from people actively searching for the business. It claims to provide a different approach than pay-per-click or other models that charge upfront fees or monthly rates. Testimonials from past participants say the calls generated are serious customers rather than just shoppers and have directly resulted in new business and sales for their companies.
This document provides a lesson on New Zealand that includes:
1) A checkup questions about facts about New Zealand like its other name "Aotearoa", when the first travelers arrived, and details about the Maori people.
2) A reading comprehension section with multiple choice questions about New Zealand's climate, agriculture, sports culture, natural attractions, and wildlife.
3) Examples of using the word "turn" in different grammatical contexts.
4) A weather chart showing temperature and rainfall data for different New Zealand cities in summer and winter.
Databarracks and solid fire how to run tier 1 applications in the cloudDatabarracks
This document summarizes a presentation about running tier 1 applications in the cloud. Mark Thomas of Databarracks and Dave Wright of SolidFire discuss common issues with hosting demanding applications in cloud environments, such as lack of vendor support, performance concerns, and security worries. They describe how Databarracks addresses these issues using SolidFire's storage solutions that provide guaranteed quality of service levels and isolation for each customer's volumes. This allows tier 1 applications to meet stringent performance requirements in the cloud.
The document discusses a case that detective J.J. Coal has been asked to investigate. Tom Goode, the nephew of Mrs. Flower, visited the detective because he wants Coal to look into Clare Flower's background and check if she has the right to inherit his aunt's large sum of money. The document provides background on the people involved - Clare Flower, Tom Goode, Mrs. Flower, and Coal - and outlines some of the questions that Tom has about Clare Flower and her potential inheritance.
This document discusses new technologies learned including changing URLs to files, using DeepZoom to magnify images by 500% and arrange overlapping photos, and how WordPress and Joomla websites use plugins, themes, modules and extensions. It also mentions how embedding YouTube videos as files allows offline viewing.
This document lists the 12-year zodiac cycle of the Chinese zodiac and the associated years for each animal sign, including the Dragon, Snake, Horse, Sheep, Monkey, Rooster, Dog, Pig, Rat, Ox, Tiger and Rabbit. It provides the years from 1960 through 2022 that correspond with each zodiac sign in the repeating 12-year cycle.
This document introduces a new performance-based advertising program that only charges advertisers for leads that result in calls to the business. The program aims to cut through clutter by targeting ideal customers and includes directional leads from people actively searching for the business. It claims to provide a different approach than pay-per-click or other models that charge upfront fees or monthly rates. Testimonials from past participants say the calls generated are serious customers rather than just shoppers and have directly resulted in new business and sales for their companies.
45. プラグインメインクラス
function prefilterTransform( &$source , LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
コールされたテンプレートのソース
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(file_get_contents($template_dir . 'categorycontents_products_list_add.tpl'));
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 45
46. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage , $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE: コール元のPageオブジェクト
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(file_get_contents($template_dir . 'categorycontents_products_list_add.tpl'));
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 46
47. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename ){
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE: コールされたテンプレートのファイル名
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(file_get_contents($template_dir . 'categorycontents_products_list_add.tpl'));
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 47
48. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(file_get_contents($template_dir . 'categorycontents_products_list_add.tpl'));
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 48
49. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 49
50. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
変更を加える
$objTransform->select('h2.title')->insertBefore( ソース
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 50
51. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 51
52. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 52
53. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
要素を指定
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 53
54. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE:
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
指定した要素の操作
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 54
55. プラグインメインクラス
function prefilterTransform(&$source, LC_Page_Ex $objPage, $filename) {
$objTransform = new SC_Helper_Transform($source);
プラグインで用意した
$template_dir = PLUGIN_UPLOAD_REALDIR . 'CategoryContents/templates/';
switch($objPage->arrPageLayout['device_type_id']){
case DEVICE_TYPE_MOBILE: テンプレートを指定
case DEVICE_TYPE_SMARTPHONE:
case DEVICE_TYPE_PC:
// 商品一覧画面
if (strpos($filename, 'products/list.tpl') !== false) {
$objTransform->select('h2.title')->insertBefore(
file_get_contents($template_dir . 'categorycontents_products_list_add.tpl')
);
}
break;
default:
break;
}
$source = $objTransform->getHTML();
}
Copyright c LOCKON CO.,LTD. All Rights Reserved. 55
56. テンプレート変更のまとめ
テンプレートで変更したい
要素をDOM形式で指定
要素に対する操作を実行
Copyright c LOCKON CO.,LTD. All Rights Reserved. 56
57. カテゴリコンテンツ おさらい
①インスタンス生成 SC_Helper_Plugin
②PHP処理介入 CategoryContents
③テンプレート介入 ①
② ③
Pageクラス
controller
Smarty
SCクラス Viewクラス
model view
Copyright c LOCKON CO.,LTD. All Rights Reserved. 57