모듈 인스턴스 가져오기 

getModule($module_name, $type = 'view', $kind = '')


 getController($module_name)

 getModule($module_name, 'controller')

 getAdminController($module_name)

 getModule($module_name, 'controller', 'admin')

 getView($module_name)

 getModule($module_name, 'view') 

 &getMobile($module_name)

 getModule($module_name, 'mobile') 

 getAdminView($module_name)

 getModule($module_name, 'view', 'admin') 

 getModel($module_name)

 getModule($module_name, 'model') 

 getAdminModel($module_name)

 getModule($module_name, 'model', 'admin') 

 getAPI($module_name)

 getModule($module_name, 'api') 

 getWAP($module_name)

 getModule($module_name, 'wap') 

 getClass($module_name)

 getModule($module_name, 'class') 



쿼리관련

@param string $query_id (module name.query XML file)

@param object $args values of args object

@param string[] $arg_columns Column list

@return object Query result data


executeQuery($query_id, $args = NULL, $arg_columns = NULL)

executeQueryArray($query_id, $args = NULL, $arg_columns = NULL)



시퀀스 관련

XE는 각 테이블별로 ID를 관리하지 않고 전체 테이블을 대상으로 ID를 관리합니다.

그러하기에 각 테이블의 모든 레코드(Row)는 전부 고유의 키값(ID)를 가지고 있습니다.


 getNextSequence()

 새로운 시퀀스를 생성하여 세션에 등록

 setUserSequence($seq)

 지정한 시퀀스를 세션에 등록

 checkUserSequence($seq)

 지정한 시퀀스가 세션에 존재하는지 확인



URL 가져오기

Context::getUrl($num_args = 0, $args_list = array(), $domain = null, $encode = TRUE, $autoEncode = FALSE)


 getUrl('param1', 'value1', 'param2','value2', ...)

 /xe/index.php?mid=index&param1=value1&param2=value2

 getNotEncodedUrl('param1', 'value1', 'param2','value2', ...)

 /xe/index.php?mid=index&param1=value1&param2=value2

 getAutoEncodedUrl('param1', 'value1', 'param2','value2', ...)

 /xe/index.php?mid=index&param1=value1&param2=value2

 getFullUrl('param1', 'value1', 'param2','value2', ...)

 http://localhost/xe/index.php?mid=index&param1=value1&param2=value2

 getNotEncodedFullUrl('param1', 'value1', 'param2','value2', ...)

 http://localhost/xe/index.php?mid=index&param1=value1&param2=value2

 getSiteUrl('param1', 'value1', 'param2','value2', ...)

 /xe/index.php?mid=index&value1=param2&vid=param1

 getNotEncodedSiteUrl('param1', 'value1', 'param2','value2', ...)

 /xe/index.php?mid=index&value1=param2&vid=param1

 getFullSiteUrl('param1', 'value1', 'param2','value2', ...)

 http://localhost/xe/index.php?mid=index&value1=param2&vid=param1

 getCurrentPageUrl()

 http://localhost/xe/index.php?mid=index

 getScriptPath()

 /xe/



HTML 출력

 htmlHeader()

 Html 기본 Header 출력

 htmlFooter()

 Html 기본 Footer 출력

 alertScript($msg)

 alert 함수 스크립트 출력

 closePopupScript()

 window 닫기 스크립트 출력

 reload($isOpener = FALSE)

 document 다시 로드 스크립트 출력



사용 후 확인할 것들

isSiteID($domain)

cut_str($string, $cut_size = 0, $tail = '...')

zgap()

ztime($str)

getTimeGap($date, $format = 'Y.m.d')

getMonthName($month, $short = TRUE)

zdate($str, $format = 'Y-m-d H:i:s', $conversion = TRUE)

getEncodeEmailAddress($email)

debugPrint($debug_output = NULL, $display_option = TRUE, $file = '_debug_message.php')

writeSlowlog($type, $elapsed_time, $obj)

flushSlowlog()

getMicroTime()

delObjectVars($target_obj, $del_obj)

getDestroyXeVars(&$vars)

handleError($errno, $errstr, $file, $line)

getNumberingPath($no, $size = 3)

url_decode($str)

purifierHtml(&$content)

removeHackTag($content)

blockWidgetCode($content)

checkUploadedFile($file)

checkXmpTag($content)

removeSrcHack($match)

mysql_pre4_hash_password($password)

getRequestUriByServerEnviroment()

utf8RawUrlDecode($source)

_code2utf($num)

detectUTF8($string, $return_convert = FALSE, $urldecode = TRUE)

json_encode2($data)



기타 (알 필요가 있을까?)

isCrawler($agent = NULL)

stripEmbedTagForAdmin(&$content, $writer_member_srl)

requirePear()

checkCSRF()

recurciveExposureCheck(&$menu)

changeValueInUrl($key, $requestKey, $dbKey, $urlName = 'success_return_url')



+ Recent posts