本文整理汇总了PHP中BizSystem::ObjectFactory方法的典型用法代码示例。如果您正苦于以下问题:PHP BizSystem::ObjectFactory方法的具体用法?PHP BizSystem::ObjectFactory怎么用?PHP BizSystem::ObjectFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BizSystem
的用法示例。
在下文中一共展示了BizSystem::ObjectFactory方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getViewObject
/**
* Get the openbiz view object by object name.
* It's functional same as getObject() method, just this method can return more eclipse friendly result,
* it can support IDE's code auto completaion.
*
* @param string $objectName object name
* @return EasyView if the return object is a EasyView then return, or return null
* @example ../../example/ViewObject.php
*/
public static function getViewObject($objectName)
{
return BizSystem::ObjectFactory()->getObject($objectName, 0);
if (is_a($obj, 'EasyView')) {
return $obj;
}
}
示例2: getObject
/**
* Get the metadata object
*
* @param string $objectName object name
* @return <object> the object
*/
public static function getObject($objectName, $new = 0)
{
return BizSystem::ObjectFactory()->getObject($objectName, $new);
}