<?php
/*
Modifications done by Renaun Erickson (http://renaun.com) 2006
Copyright (c) 2006. Adobe Systems Incorporated.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of Adobe Systems Incorporated nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
@ignore
*/
include "DAO.php";
include "../vo/ProductVO.php";
/**
* DAO responsible for the Product Entity in the database
*
* @version $Revision: 1.2 $
*/
class ProductDAO extends DAO
{
var $products = array();
function getEntityName()
{
return "Product";
}
function listProducts()
{
return $this->createProducts();
}
function addProduct( $product )
{
$this->products[] = $product;
}
function createProducts()
{
$this->products = array();
$product1 = new ProductVO();
$product1->setId( 1 );
$product1->setName( "USB Watch" );
$product1->setDescription( "So, you need to tell the time of course, but you also need a way to carry your valuable data with you at all times (you know - your MP3 files, favorite images, your ThinkGeek shopping list). This watch can handle the mission for you and do it in style. It can store up to 256 Megs of data." );
$product1->setPrice( 129.99 );
$product1->setImage( "assets/products/usbwatch.jpg" );
$product1->setThumbnail( "assets/products/usbwatch_sm.jpg" );
$this->products[] = $product1;
$product2 = new ProductVO();
$product2->setId( 2 );
$product2->setName( "007 Digital Camera" );
$product2->setDescription( "There is finally a hi-tech gadget from Q''s laboratory that can be had by the measly (albeit smart) masses who are not fortunate enough to carry a license to kill. This inconspicuous Zippo look-alike actually contains a digital camera capable of holding over 300 images." );
$product2->setPrice( 99.99 );
$product2->setImage( "assets/products/007camera.jpg" );
$product2->setThumbnail( "assets/products/007camera_sm.jpg" );
$this->products[] = $product2;
$product3 = new ProductVO();
$product3->setId( 3 );
$product3->setName( "2-Way Radio Watch" );
$product3->setDescription( "The only wristwatch with a 2-way radio available to date. It features a built-in 22-channel FRS walkie talkie with a 1.5-mile range. The voice-activated feature allows you to speak into the microphone and your words will be beamed directly to the speaker of any other FRS walkie talkie user." );
$product3->setPrice( 49.99 );
$product3->setImage( "assets/products/radiowatch.jpg" );
$product3->setThumbnail( "assets/products/radiowatch_sm.jpg" );
$this->products[] = $product3;
$product4 = new ProductVO();
$product4->setId( 4 );
$product4->setName( "USB Desk Fan" );
$product4->setDescription( "Some people are addicted to fans. They have one running when they sleep (the background noise can be soothing) and they have one on their desk at all times. Other people just like to have a little moving air. Whether you are a fan addict or just a casual user, we have just the device for you." );
$product4->setPrice( 19.99 );
$product4->setImage( "assets/products/usbfan.jpg" );
$product4->setThumbnail( "assets/products/usbfan_sm.jpg" );
$this->products[] = $product4;
$product5 = new ProductVO();
$product5->setId( 5 );
$product5->setName( "Caffeinated Soap" );
$product5->setDescription( "Tired of waking up and having to wait for your morning java to brew? Are you one of those groggy early morning types that just needs that extra kick? Introducing Shower Shock, the original and world''s first caffeinated soap. When you think about it, ShowerShock is the ultimate clean buzz ;)" );
$product5->setPrice( 19.99 );
$product5->setImage( "assets/products/soap.jpg" );
$product5->setThumbnail( "assets/products/soap_sm.jpg" );
$this->products[] = $product5;
$product6 = new ProductVO();
$product6->setId( 6 );
$product6->setName( "Desktop Rovers" );
$product6->setDescription( "Inspired by NASA''s planetary exploration program, this miniature ''caterpillar drive'' rover belongs officially in the ''way too cool'' category. These mini remote controlled desktop rovers with tank treads are only 4 inches long and ready to explore the 'Alien Landscapes' around your home or office." );
$product6->setPrice( 49.99 );
$product6->setImage( "assets/products/rover.jpg" );
$product6->setThumbnail( "assets/products/rover_sm.jpg" );
$this->products[] = $product6;
$product7 = new ProductVO();
$product7->setId( 7 );
$product7->setName( "PC Volume Knob" );
$product7->setDescription( "The coolest volume knob your computer has ever seen and so much more. Use it to edit home movies or scroll through long documents and web pages. Program it to do anything you want in any application. Customize it to your own needs and get wild." );
$product7->setPrice( 34.99 );
$product7->setImage( "assets/products/volume.jpg" );
$product7->setThumbnail( "assets/products/volume_sm.jpg" );
$this->products[] = $product7;
$product8 = new ProductVO();
$product8->setId( 8 );
$product8->setName( "Wireless Antenna" );
$product8->setDescription( "A Cantenna is simply an inexpensive version of the long-range antennas used by wireless internet providers and mobile phone companies. Now, with your own Cantenna you can extend the range of your wireless network or connect to other wireless networks in your neighborhood." );
$product8->setPrice( 49.99 );
$product8->setImage( "assets/products/cantena.jpg" );
$product8->setThumbnail( "assets/products/cantena_sm.jpg" );
$this->products[] = $product8;
$product9 = new ProductVO();
$product9->setId( 9 );
$product9->setName( "TrackerPod" );
$product9->setDescription( "TrackerPod is a small robotic tripod on which you mount a webcam, and TrackerCam is Artificial Intelligence software to control camera movement from your computer. Together they perform the function of a robotic camera-man for your webcam." );
$product9->setPrice( 129.99 );
$product9->setImage( "assets/products/trackerpod.jpg" );
$product9->setThumbnail( "assets/products/trackerpod_sm.jpg" );
$this->products[] = $product9;
$product10 = new ProductVO();
$product10->setId( 10 );
$product10->setName( "Caffeinated Sauce" );
$product10->setDescription( "After months of sleepless nights, we finally came up with something we could bottle up and sell to the masses. A hot sauce (extremely hot btw) that tastes great and has caffeine in it!" );
$product10->setPrice( 6.99 );
$product10->setImage( "assets/products/hotsauce.jpg" );
没有合适的资源?快使用搜索试试~ 我知道了~
renaun_com_RemoteObjectAMF0
共151个文件
html:42个
as:35个
jpg:22个
需积分: 3 13 下载量 97 浏览量
2011-06-30
13:29:53
上传
评论
收藏 1.02MB ZIP 举报
温馨提示
renaun_com_RemoteObjectAMF0 Fluorine网关与ASP.NET类交互
资源推荐
资源详情
资源评论
收起资源包目录
renaun_com_RemoteObjectAMF0 (151个子文件)
Comparator.as 14KB
RemoteObjectAMF0.as 14KB
method.as 6KB
ShoppingCart.as 5KB
ShopModelLocator.as 4KB
ValidateOrderCommand.as 4KB
ValidateCreditCardCommand.as 4KB
GetProductsCommand.as 3KB
ShopController.as 3KB
CompletePurchaseCommand.as 3KB
SortProductsCommand.as 3KB
ResponderAMF0.as 3KB
ShoppingCartElement.as 3KB
ProductVO.as 3KB
PurchaseCompleteEvent.as 3KB
FilterProductsCommand.as 3KB
UpdateShoppingCartEvent.as 2KB
CreditCardDelegate.as 2KB
AddProductToShoppingCartCommand.as 2KB
DeleteProductFromShoppingCartCommand.as 2KB
ProductDelegate.as 2KB
CairngormStoreAssets.as 2KB
FilterProductsEvent.as 2KB
ValidateCreditCardEvent.as 2KB
UpdateShippingCostEvent.as 2KB
ValidateOrderEvent.as 2KB
SortProductsEvent.as 2KB
GetProductsEvent.as 2KB
NewScreenEvent.as 2KB
Comparable.as 2KB
Observe.as 2KB
RemotingConnection.as 2KB
BookVO.as 1011B
GeneralInformationModel.as 324B
PaymentInformationModel.as 324B
style.css 9KB
print.css 2KB
cairngormstore.css 2KB
Thumbs.db 9KB
tg-logo.gif 2KB
inheritedSummary.gif 144B
inherit-arrow.gif 85B
collapsed.gif 79B
expanded.gif 79B
index.htm 1KB
RemoteObjectAMF0.html 27KB
method.html 13KB
all-index-R.html 13KB
all-index-M.html 11KB
all-index-S.html 10KB
all-index-G.html 9KB
all-index-C.html 9KB
all-index-A.html 9KB
RemotingConnection.html 9KB
all-index-F.html 9KB
all-index-E.html 8KB
all-index-N.html 8KB
all-index-I.html 8KB
all-index-J.html 8KB
all-index-D.html 8KB
all-index-X.html 8KB
all-index-Q.html 8KB
all-index-K.html 8KB
all-index-W.html 8KB
all-index-U.html 8KB
all-index-V.html 8KB
all-index-B.html 8KB
all-index-Z.html 8KB
all-index-P.html 8KB
all-index-H.html 8KB
all-index-Y.html 8KB
all-index-T.html 8KB
all-index-L.html 8KB
all-index-O.html 8KB
ResponderAMF0.html 7KB
class-summary.html 5KB
title-bar.html 4KB
package-detail.html 4KB
package-summary.html 3KB
appendixes.html 3KB
index-list.html 2KB
index.html 2KB
mxml-tags.html 1KB
class-list.html 1KB
all-classes.html 1022B
package-list.html 962B
package-frame.html 932B
putty.jpg 6KB
ufo.jpg 6KB
microscope.jpg 6KB
rover.jpg 5KB
radiowatch.jpg 5KB
cantena.jpg 4KB
usbwatch.jpg 4KB
soap.jpg 4KB
globe.jpg 4KB
robot.jpg 4KB
trackerpod.jpg 4KB
hotsauce.jpg 3KB
007camera.jpg 3KB
共 151 条
- 1
- 2
资源评论
yangxjn
- 粉丝: 25
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功