本文整理匯總了PHP中JModelForm::checkout方法的典型用法代碼示例。如果您正苦於以下問題:PHP JModelForm::checkout方法的具體用法?PHP JModelForm::checkout怎麽用?PHP JModelForm::checkout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類JModelForm
的用法示例。
在下文中一共展示了JModelForm::checkout方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: checkout
/**
* Method override to check-out a record.
*
* @param integer $pk The ID of the primary key.
*
* @return boolean True if successful, false if an error occurs.
* @since 11.1
*/
public function checkout($pk = null)
{
// Initialise variables.
$pk = (!empty($pk)) ? $pk : (int) $this->getState($this->getName().'.id');
return parent::checkout($pk);
}
示例2: checkout
/**
* Method override to check-out a record.
*
* @param integer $pk The ID of the primary key.
*
* @return boolean True if successful, false if an error occurs.
*
* @since 12.2
*/
public function checkout($pk = null)
{
$pk = !empty($pk) ? $pk : (int) $this->getState($this->getName() . '.id');
return parent::checkout($pk);
}
示例3: checkout
/**
* Method to override check-out a row for editing.
*
* @param int The ID of the primary key.
* @return boolean
*/
public function checkout($pk = null)
{
// Initialise variables.
$pk = !empty($pk) ? $pk : (int) $this->getState('package.id');
return parent::checkout($pk);
}