1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: 338: 339: 340: 341: 342: 343: 344: 345: 346: 347: 348: 349: 350: 351: 352: 353: 354: 355: 356: 357: 358: 359: 360: 361: 362: 363: 364: 365: 366: 367: 368: 369: 370: 371: 372: 373: 374: 375: 376: 377: 378: 379: 380: 381: 382: 383: 384: 385: 386: 387: 388: 389: 390: 391: 392: 393: 394: 395: 396: 397: 398: 399: 400: 401: 402: 403: 404: 405: 406: 407: 408: 409: 410: 411: 412: 413: 414: 415: 416: 417: 418: 419: 420: 421: 422: 423: 424: 425: 426: 427: 428: 429: 430: 431: 432: 433: 434: 435: 436: 437: 438: 439: 440: 441: 442: 443: 444: 445: 446: 447: 448: 449: 450: 451: 452: 453: 454: 455: 456: 457: 458: 459: 460: 461: 462: 463: 464: 465: 466: 467: 468: 469: 470: 471: 472: 473: 474: 475: 476: 477: 478: 479: 480: 481: 482: 483: 484: 485: 486: 487: 488: 489: 490: 491:
<?php
class exClass{
static function appModelList($removePage = true){ return app_model_list($removePage); }
static function appControllerList(){ return app_controller_list(); }
static function appApiList(){ return app_api_list(); }
static function appPageList(){ return app_page_list(); }
static function appDashboardList(){ return app_dashboard_list(); }
}
class exBlade1 {
static $LOADED_VIEW_AND_CACHE_LIST = [];
static $CURRENT_LAYOUT_PATH = null;
static function getLoadedViewAndCachedPath(){ return self::$LOADED_VIEW_AND_CACHE_LIST; }
static function getCompiledView($view_name, $param = []){ return view_make($view_name, $param); }
static function renderView($view_name, $param = []){ view($view_name, $param); }
static function convertPathToViewPath($fileFullPath){ return path_to_viewpath($fileFullPath); }
static function convertViewPathToPath($viewPath){ return viewpath_to_path($viewPath); }
static function getAllViewInDirectory($fileFullPath, $viewNameOnly = false, $recursive = false){ return get_all_view_in_directory($fileFullPath, $viewNameOnly, $recursive); }
}
class exUrl1 extends Url1 {
static function request(array $insertOrReplaceKeyValue = [], array $filterCheckBoxNameList = [], array $filterFileUploadNameList = []){ return request($insertOrReplaceKeyValue, $filterCheckBoxNameList, $filterFileUploadNameList); }
static function makeRoute($name, $function){ makeRoute($name, $function); }
static function routes($except = [], $listAsMenu = false, $renameLinkName_oldName_equals_newName = []){ return routes($except, $listAsMenu, $renameLinkName_oldName_equals_newName); }
static function url($path = null){ return url($path); }
static function redirectToView($viewPageName, array $param = [], $actionResult = false, $trueMessage = [], $falseMessage = []){ return redirect_to_view($viewPageName, $param, $actionResult, $trueMessage, $falseMessage); }
static function route($name, $param_data = []){ return route($name, $param_data); }
static function getCurrentRoute(){ return RouteRequest::instance(); }
static function old($inputVariable, $default){ return old($inputVariable, $default); }
static function view($view_name, $param = []){ view($view_name, $param); }
static function pathClearCache(){ path_clear_cache(); }
static function asset($path = '', $findInSharedAssets = false){ return asset($path, $findInSharedAssets); }
static function registerPathForLayoutAsset($optional_layoutViewPath_or_layoutFullPath = null, $backtrace_index = 0){ return register_path_for_layout_asset(null, 1); }
static function layoutAsset($filename = '', $layout_name = null, $assets_folder_name = 'assets'){ return layout_asset($filename, $layout_name, $assets_folder_name); }
static function currentLayoutAsset($file_path_name = '', $assets_folder_name = 'assets'){ return current_resources_asset_path($file_path_name, $assets_folder_name, '/resources/views/layouts/', '/shared/resources/views/', 'layout_list', 1); }
static function currentPluginAsset($file_path_name = '', $assets_folder_name = 'assets'){ return current_resources_asset_path($file_path_name, $assets_folder_name, '/resources/plugins/', '/shared/resources/plugins/', 'plugin_list', 1); }
static function pathApp($path = ''){ return path_app($path); }
static function pathMain($path = ''){ return path_main($path); }
static function pathAsset($path = ''){ return path_asset($path); }
static function pathAssetUrl($path = '', $findInSharedAssets = false){ return path_asset_url($path, $findInSharedAssets); }
static function pathMainUrl($path = ''){ return path_main_url($path); }
static function pathShared($path = '', $directory = ''){ return path_shared($path, $directory); }
static function pathSharedResources($path = ''){ return path_shared_resources($path); }
static function pathSharedApp($path = ''){ return path_shared_app($path); }
static function pathSharedAssetUrl($path = ''){ return path_shared_asset_url($path); }
static function resourcesPath() { return resources_path(); }
static function resourcesPathView() { return resources_path_view(); }
static function resourcesPathCache() { return resources_path_cache(); }
static function resourcesPathAsset() { return resources_path_asset(); }
static function resourcesPathPlugin($isShared = ''){ return resources_path_plugin($isShared); }
static function resourcesPathViewLayout($isShared = ''){ return resources_path_view_layout($isShared); }
static function appClassPaths(){ return app_class_paths(); }
static function appClassList($typeList = [Model1::class, Controller1::class, Api1::class]){ return app_class_list($typeList); }
static function convertPathToUrl($path){ return String1::replaceStart($path, path_main(), path_main_url()); }
static function convertUrlToPath($url){ return String1::replaceStart($url, path_main_url(), path_main()); }
}
class exRoute1{
static function getRoute(){ return route(); }
static function any($name, $action){ return route()->any($name, $action); }
static function get($name, $action){ return route()->get($name, $action); }
static function post($name, $action){ return route()->post($name, $action); }
static function view($name, $viewName){ return route()->view($name, $viewName); }
static function fixed($arrayList = ['error404'=>'pages.common.error404', 'maintenance'=>'layouts.coming_soon.index']){ return route()->fixed($arrayList); }
static function resource($name, $controllerOrModelClassName = '', array $option = []){ return route()->resource($name, $controllerOrModelClassName, $option); }
static function directory($viewPath_or_fullPath, $recursive = false){ route()->directory($viewPath_or_fullPath, $recursive); }
static function getRoutes(){ return route(); }
static function isExists($route){ return route()->isExists($route); }
}
class exData1 {
static function paginate($records, $perPage = 10, $asInfiniteLoad = false, $infiniteLoadConfig = []){ return paginate($records, $perPage, $asInfiniteLoad, $infiniteLoadConfig); }
}
class exTranslate1{
static function translateLanguage($languageText_or_translateKey, $toLanguage = 'auto', $fromLanguage = 'en'){ return translate_language($languageText_or_translateKey, $toLanguage, $fromLanguage); }
static function translatedLanguage($selectedLanguage = 'auto', $fromLanguage = 'en'){ return translated_language($selectedLanguage, $fromLanguage); }
}
class exMail1{
static function getTemplate($view_name = 'emails.welcome', $param = ['userName'=>'Samson Iyanu', 'password'=>'12345']){ return view_make($view_name, $param); }
static function mailer($path = null){ return mailer($path); }
static function mailerSendMailToList($toUserEmail_and_UserName_keyValue = [], $subject, $htmlMessageContent, $attachmentPath = null, $fromEmail = null, $fromUserName = null, $exception = false){ return mailer_send_mail_to_list($toUserEmail_and_UserName_keyValue, $subject, $htmlMessageContent, $attachmentPath, $fromEmail, $fromUserName, $exception); }
static function fakeMailAddress_fromSiteAddress($emailName){ return $emailName.'@'.explode('//', Url1::getSiteMainAddress())[1]; }
}
class exApiController1 extends Controller1{
static function deleteFile(){
$result = (isset($_REQUEST['file_locator_id']) && $_REQUEST['file_locator_id'] > 0)? Model1FileLocator::delete_fromDb_byFieldName($_REQUEST['file_locator_id'], 'id'): true;
return FileManager1::delete(urldecode($_REQUEST['file_path'])) || $result;
}
static function fileLocatorReSaveLocalFilesToDb(){ return !!(Model1FileLocator::insertAll_fromFile_toDb( $_REQUEST['model_name']::withId($_REQUEST['model_id']) )); }
static function fileLocatorDeleteAllFiles(){ return !!(Model1FileLocator::deleteAll( $_REQUEST['model_name']::withId($_REQUEST['model_id']) )); }
}