本文整理匯總了PHP中Price::all方法的典型用法代碼示例。如果您正苦於以下問題:PHP Price::all方法的具體用法?PHP Price::all怎麽用?PHP Price::all使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Price
的用法示例。
在下文中一共展示了Price::all方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: label
public function label()
{
$charactor = Charactor::all();
$scene = Scene::all();
$object = Object::all();
// dd('man');
$price = Price::all();
return Response::json(array('errCode' => 0, 'message' => '返回標簽', '_char' => $charactor, 'scene' => $scene, 'object' => $object, 'price' => $price));
}
示例2: label
public function label()
{
$charactor = Charactor::all();
$scene = Scene::all();
$object = Object::all();
// dd('man');
$price = Price::all();
return View::make('pc.search')->with(array('errCode' => 0, 'message' => '返回標簽', '_char' => $charactor, 'scene' => $scene, 'object' => $object, 'price' => $price));
}
示例3: priceFormArray
public static function priceFormArray($notNull = null)
{
$obj = Price::all();
if ($notNull == null) {
$array[''] = '- Không chọn';
}
if (count($obj) > 0) {
foreach ($obj as $value) {
$array[$value->id] = priceArrangeString($value->min, $value->max);
}
}
return $array;
}