本文整理汇总了PHP中Job::getCode方法的典型用法代码示例。如果您正苦于以下问题:PHP Job::getCode方法的具体用法?PHP Job::getCode怎么用?PHP Job::getCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Job
的用法示例。
在下文中一共展示了Job::getCode方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetSetCode
/**
* Test getter/setter code
*/
public function testGetSetCode()
{
$this->assertNull($this->jobInstance->getCode());
$expectedCode = 'expected_code';
$this->assertEntity($this->jobInstance->setCode($expectedCode));
$this->assertEquals($expectedCode, $this->jobInstance->getCode());
}
示例2: Vehicle
?>
</div>
<div id="content" style="float:right;width:85%;">
<table>
<tr><td style="width:200px;">Vehicle Type</td>
<td style="width:200px;">Model</td>
<td style="width:200px;">Vehicle Number</td>
<td style="width:200px;">Current Job</td>
<td style="width:200px;">Current Driver</td>
<td style="width:200px;">Action</td>
</tr>
<?php
for ($i = 0; $i < sizeof($mVehicleList); $i++) {
$mVehicle = new Vehicle($mVehicleList[$i]);
$mJob = new Job($mVehicle->getCurrentJob());
$mDriver = new Driver($mJob->getDriver());
echo "<tr>";
echo "<td>" . $mVehicle->getType() . "</td>";
echo "<td>" . $mVehicle->getModel() . "</td>";
echo "<td>" . $mVehicle->getVehicleNumber() . "</td>";
echo "<td>" . $mJob->getCode() . "</td>";
echo "<td>" . $mDriver->getName() . "</td>";
echo "<td><input type='submit' value='Assign'><input type='submit' value='Track'></td>";
echo "</tr>";
}
?>
</table>
<div>
</div>
</body>
示例3: sizeof
</head>
<body>
<div id="header">
<?php
include '../header.php';
?>
</div>
<div id="container">
<div id="sidebar" style="float:left;width:15%;">
<?php
include 'sidebar.php';
?>
</div>
<div id="content" style="float:right;width:85%;">
<?php
echo "Code : " . $mJob->getCode() . "<br>";
echo "Vehicle : " . $mVehicle->getVehicleNumber() . "<br>";
echo "Driver : " . $mDriver->getName() . "<br>";
echo "Location : " . $locationId . "<br>";
echo "No of orders : " . sizeof($orderList) . "<br>";
//echo $mJob->getStatus();
//if($mJob->getStatus() == '0') {
?>
<input type="submit" value="Complete" onClick="setCompleted()">
<?php
//}
?>
<hr>
<table>
<tr><td style="width:200px;">Order Code</td>
<td style="width:200px;">Title</td>
示例4: Job
<?php
include 'sidebar.php';
?>
</div>
<div id="content" style="float:right;width:85%;">
<table>
<tr><td style="width:200px;">Job</td>
<td style="width:200px;">Title</td>
<td style="width:200px;">Vehicle</td>
<td style="width:200px;">Driver</td>
<td style="width:200px;">Action</td>
</tr>
<?php
for ($i = 0; $i < sizeof($mJobList); $i++) {
$mJob = new Job($mJobList[$i]);
$mVehicle = new Vehicle($mJob->getVehicle());
$mDriver = new Driver($mJob->getDriver());
echo "<tr>";
echo "<td><a href='detail.php?id=" . $mJob->getId() . "'>" . $mJob->getCode() . "</a></td>";
echo "<td>" . $mJob->getTitle() . "</td>";
echo "<td><a href='../vehicle/detail.php?id=" . $mVehicle->getId() . "'>" . $mVehicle->getVehicleNumber() . "</a></td>";
echo "<td><a href='../driver/detail.php?id=" . $mDriver->getId() . "'>" . $mDriver->getName() . "</a></td>";
echo "<td><input type='submit' value='Assign'><input type='submit' value='Track'></td>";
echo "</tr>";
}
?>
</table>
<div>
</div>
</body>