本文整理匯總了PHP中DaoFactory::createInstance方法的典型用法代碼示例。如果您正苦於以下問題:PHP DaoFactory::createInstance方法的具體用法?PHP DaoFactory::createInstance怎麽用?PHP DaoFactory::createInstance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DaoFactory
的用法示例。
在下文中一共展示了DaoFactory::createInstance方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: smarty_modifier_get_language
/**
* Smarty get_language modifier plugin
*
* Type: modifier<br>
* Name: get_language<br>
*
* @author ikatayama
* @param string $
* @param string $
* @return string
*/
function smarty_modifier_get_language($cd, $lng = 'ja')
{
static $language = array();
if (!isset($language[$cd])) {
$language[$cd] = DaoFactory::createInstance('Language')->SelectOne('name_' . $lng, 'language_cd = ?', array($cd));
}
return $language[$cd];
}
示例2: smarty_modifier_get_authority
/**
* Smarty get_authority modifier plugin
*
* Type: modifier<br>
* Name: get_authority<br>
*
* @author ikatayama
* @param string $
* @param string $
* @return string
*/
function smarty_modifier_get_authority($id)
{
static $authority = array();
if (!isset($authority[$id])) {
$authority[$id] = DaoFactory::createInstance('Authority')->SelectOne('name', 'authority_id = ?', array($id));
}
return $authority[$id];
}
示例3: smarty_modifier_get_company
/**
* Smarty get_company modifier plugin
*
* Type: modifier<br>
* Name: get_company<br>
*
* @author ikatayama
* @param string $
* @param string $
* @return string
*/
function smarty_modifier_get_company($id, $lng = 'ja')
{
static $company = array();
if (!isset($company[$id])) {
$company[$id] = DaoFactory::createInstance('Company_text')->SelectOne('name', 'company_id = ? AND language_cd = ?', array($id, $lng));
}
return $company[$id];
}
示例4: smarty_modifier_get_direction
/**
* Smarty get_direction modifier plugin
*
* Type: modifier<br>
* Name: get_direction<br>
*
* @author ikatayama
* @param string $
* @param string $
* @return string
*/
function smarty_modifier_get_direction($cd)
{
static $direction = array();
if (!isset($direction[$cd])) {
$direction[$cd] = DaoFactory::createInstance('Language')->SelectOne('direction', 'language_cd = ?', array($cd));
}
return $direction[$cd];
}
示例5: smarty_modifier_get_user
/**
* Smarty get_user modifier plugin
*
* Type: modifier<br>
* Name: get_user<br>
*
* @author ikatayama
* @param string $
* @param string $
* @return string
*/
function smarty_modifier_get_user($id)
{
static $users = array();
if (!isset($users[$id])) {
$users[$id] = DaoFactory::createInstance('User')->SelectOne('name', 'user_id = ?', array($id));
}
return $users[$id];
}
示例6: smarty_modifier_get_business_category
/**
* Smarty get_business_category modifier plugin
*
* Type: modifier<br>
* Name: get_business_category<br>
*
* @author ikatayama
* @param string $
* @return string
*/
function smarty_modifier_get_business_category($id, $lng = 'ja')
{
static $category = array();
$name = 'name_' . $lng;
if (!isset($category[$id])) {
$category[$id] = DaoFactory::createInstance('BusinessCategory')->SelectOne($name, 'business_category_id = ?', array($id));
}
return $category[$id];
}
示例7: smarty_modifier_get_business_categories
/**
* Smarty get_business_categories modifier plugin
*
* Type: modifier<br>
* Name: get_business_categories<br>
*
* @author ikatayama
* @param string カンマ區切りのID
* @return string
*/
function smarty_modifier_get_business_categories($strId)
{
return DaoFactory::createInstance('BusinessCategory')->getCategoryString($strId);
}