Exemplo n.º 1
0
 public static function hasWheel($userId)
 {
     $wheel = Wheel::model()->find('user_id=:userId', array(':userId' => $userId));
     if ($wheel) {
         return true;
     } else {
         return false;
     }
 }
Exemplo n.º 2
0
<?php

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

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