本文整理汇总了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);
}