示例#1
0
文件: WheelApi.php 项目: romeo14/pow
 public static function hasWheel($userId)
 {
     $wheel = Wheel::model()->find('user_id=:userId', array(':userId' => $userId));
     if ($wheel) {
         return true;
     } else {
         return false;
     }
 }
示例#2
0
<?php

require 'Wheel.php';
require 'Engine.php';
$wheel = new Wheel();
$engine = new Engine();
$engine->start();
$wheel->roll();
$wheel->drift();
$engine->stop();
示例#3
0
 public function display()
 {
     parent::display();
     echo "Wysokosc to: " . $this->getH() . "<br>";
 }
示例#4
0
文件: Visitor.php 项目: alxolr/php-dp
 /**
  * @param Wheel $wheel
  *
  * @return mixed
  */
 function visitWheel(Wheel $wheel)
 {
     echo "Kick my" + $wheel->getName() + "wheel" . PHP_EOL;
 }
示例#5
0
<?php

require 'Wheel.php';
require 'Engine.php';
$wheel = new Wheel();
$engine = new Engine();
$engine->start();
$wheel->roll();
示例#6
0
 public function copy()
 {
     $wheel = new Wheel();
     $wheel->setSize($this->getSize());
     return $wheel;
 }