本文整理匯總了PHP中JLTable::bind方法的典型用法代碼示例。如果您正苦於以下問題:PHP JLTable::bind方法的具體用法?PHP JLTable::bind怎麽用?PHP JLTable::bind使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類JLTable
的用法示例。
在下文中一共展示了JLTable::bind方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: bind
/**
* Bind function
*
* @acces public
* @param array $hash named array
* @return null|string null is operation was satisfactory, otherwise returns an error
* @see JTable:bind
*/
public function bind($array, $ignore = '')
{
if (key_exists('params', $array) && is_array($array['params'])) {
$registry = new JRegistry();
$registry->loadArray($array['params']);
$array['params'] = $registry->toString('ini');
}
return parent::bind($array, $ignore);
}
示例2: bind
/**
* extends bind to include class params (non-PHPdoc)
* @see administrator/components/com_joomleague/tables/JLTable#bind($array, $ignore)
*/
function bind($array, $ignore = '')
{
if (key_exists('baseparams', $array) && is_array($array['baseparams'])) {
$registry = new JRegistry();
$registry->loadArray($array['baseparams']);
$array['baseparams'] = (string) $registry;
}
if (key_exists('params', $array) && is_array($array['params'])) {
$registry = new JRegistry();
$registry->loadArray($array['params']);
$array['params'] = (string) $registry;
}
return parent::bind($array, $ignore);
}
示例3: bind
/**
* Overloaded bind function
*
* @acces public
* @param array $hash named array
* @return null|string null is operation was satisfactory, otherwise returns an error
* @see JTable:bind
* @since 1.5
*/
public function bind($array, $ignore = '')
{
if (key_exists('params', $array) && is_array($array['params'])) {
$registry = new JRegistry();
$registry->loadArray($array['params']);
$array['params'] = $registry->toString();
}
if (key_exists('comp_params', $array) && is_array($array['comp_params'])) {
$registry = new JRegistry();
$registry->loadArray($array['comp_params']);
$array['comp_params'] = $registry->toString();
}
//print_r( $array );exit;
return parent::bind($array, $ignore);
}