本文整理汇总了PHP中AdminController::postEdit方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::postEdit方法的具体用法?PHP AdminController::postEdit怎么用?PHP AdminController::postEdit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::postEdit方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('firstname' => 'required', 'lastname' => 'required', 'email' => 'required');
if ($data['pass'] == '') {
unset($data['pass']);
unset($data['repass']);
} else {
$this->validator['pass'] = 'required|same:repass';
}
return parent::postEdit($id, $data);
}
示例2: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('shopDescription' => 'required');
//exit();
return parent::postEdit($id, $data);
}
示例3: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('title' => 'required', 'slug' => 'required');
$this->backlink = 'content/section';
return parent::postEdit($id, $data);
}
示例4: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('name' => 'required', 'venue' => 'required', 'address' => 'required');
return parent::postEdit($id, $data);
}
示例5: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('SKU' => 'required', 'category' => 'required', 'itemDescription' => 'required', 'priceRegular' => 'required');
return parent::postEdit($id, $data);
}
示例6: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array();
//exit();
return parent::postEdit($id, $data);
}
示例7: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('number' => 'required', 'address' => 'required', 'city' => 'required', 'zipCode' => 'required', 'type' => 'required', 'yearBuilt' => 'required', 'FMV' => 'required', 'listingPrice' => 'required');
return parent::postEdit($id, $data);
}
示例8: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('type' => 'required', 'holidayDescription' => 'required');
return parent::postEdit($id, $data);
}
示例9: postEdit
public function postEdit($id, $data = null)
{
if (isset($data['useImage']) && $data['useImage'] == 'linked') {
$this->validator = array('itemDescription' => 'required', 'extImageURL' => 'required');
} else {
$this->validator = array('itemDescription' => 'required');
}
$hobj = Asset::find($id)->toArray();
$hobj['_id'] = new MongoId($id);
$hdata['historyTimestamp'] = new MongoDate();
$hdata['historyAction'] = 'update';
$hdata['historySequence'] = 0;
$hdata['historyObjectType'] = 'asset';
$hdata['historyObject'] = $hobj;
History::insert($hdata);
return parent::postEdit($id, $data);
}
示例10: postEdit
public function postEdit($id, $data = null)
{
$this->validator = array('FMV' => 'required', 'HOA' => 'required', 'address' => 'required', 'bath' => 'required', 'bed' => 'required', 'category' => 'required', 'city' => 'required', 'description' => 'required', 'houseSize' => 'required', 'insurance' => 'required', 'leaseStartDate' => 'required', 'leaseTerms' => 'required', 'listingPrice' => 'required', 'lotSize' => 'required', 'monthlyRental' => 'required', 'number' => 'required', 'propertyManager' => 'required', 'propertyStatus' => 'required', 'section8' => 'required', 'state' => 'required', 'tax' => 'required', 'type' => 'required', 'yearBuilt' => 'required', 'zipCode' => 'required');
return parent::postEdit($id, $data);
}