本文整理汇总了PHP中Property::all方法的典型用法代码示例。如果您正苦于以下问题:PHP Property::all方法的具体用法?PHP Property::all怎么用?PHP Property::all使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Property
的用法示例。
在下文中一共展示了Property::all方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAll
public function testAll()
{
$expected = array('$all' => array('a', 'b', 'c'));
$property = new Property($this->getMockQuery());
$property->all(array('a', 'b', 'c'));
$this->assertEquals($expected, $property->getConstraints());
}
示例2: edit
/**
* Show the form for editing the specified resource.
* GET /houses/{id}/edit
*
* @param int $id
* @return Response
*/
public function edit($id)
{
$paymenttypes = Paymenttype::find($id);
$properties = Property::all();
if (is_null($paymenttypes)) {
return Redirect::route('paymenttype.index');
}
return View::make('backend.code.paymenttype.edit', compact('paymenttypes', 'properties'));
}
示例3: addTenant
public function addTenant()
{
$properties = Property::all();
return View::make('backend.code.property.tenantadd', compact('properties'));
}
示例4: all
public function all()
{
return Property::all();
}
示例5: getIndex
/**
* Display a listing of properties
*
* @return Response
*/
public function getIndex()
{
$properties = Property::all();
return View::make('properties.index', compact('properties'));
}
示例6: create
/**
* Show the form for creating a new resource.
* GET /houses/create
*
* @return Response
*/
public function create()
{
$properties = Property::all();
$frequencies = Frequency::all();
return View::make('backend.code.houses.create', compact('houses', 'frequencies'));
}
示例7: index
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
$properties = $this->property->all();
return View::make('admin.properties.index', compact('properties'));
}