/** * 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; } }
/** * 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); }