当前位置: 首页>>代码示例>>PHP>>正文


PHP Job::getCode方法代码示例

本文整理汇总了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());
 }
开发者ID:xleliberty,项目名称:BatchBundle,代码行数:10,代码来源:JobInstanceTest.php

示例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> 
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:index2.php

示例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>
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:detail.php

示例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> 
开发者ID:rustydev19,项目名称:Navigator,代码行数:31,代码来源:index.php


注:本文中的Job::getCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。