Çağrı zincirindeki ilgili kaynaklar aşağıda gösteriliyor.
35 * @param array $parameters36 * 37 * @return mixed38 */39 protected static function useClassName($method, $parameters)40 {41 return Singleton::class(STATIC_ACCESS . static::getClassName())->$method(...$parameters);42 }43}
132133 <!-- Language & Currency Selectors -->134 <div class="tg-footer-locale">135 <div class="tg-locale-select">136 <label for="tg-footer-lang" class="visually-hidden">{{ LANG['general/language'] ?? 'Dil' }}</label>137 <select id="tg-footer-lang" class="form-select" onchange="window.location.href = this.value;">138 @foreach(iLang::getLanguages() as $langCode => $langName)139 <option value="{{ URL::site(iRoute::lang($langCode)->uri(null)) }}" {{ (CURRENT_LANG === $langCode ? 'selected' : '') }}>{{ $langName }}</option>140 @endforeach141 </select>142 </div>143 <div class="tg-currency-select">144 <label for="tg-footer-currency" class="visually-hidden">{{ LANG['general/currency'] ?? 'Para Birimi' }}</label>
72 {73 extract($randomBufferClassDataVariable, EXTR_OVERWRITE, 'KUT');74 }7576 ob_start();7778 require $randomBufferClassPagePath;7980 $randomBufferClassPageContents = ob_get_contents();8182 ob_end_clean();8384 return $randomBufferClassPageContents;
119120 /**121 * Compile and execute a Wizard template.122 */123 public static function file(string $file, ?array $data = NULL) : string124 {125 return Buffering::file(self::compile($file), $data);126 }127128 /**129 * Return source information stored in a compiled template.130 *131 * @return object|false
113 if( is_file($randomPagePath) )114 {115 # The template is compiled into a real php file and that file is included.116 # Thus the file and the line of a possible php error are not lost.117 if( $randomIsWizard === true )118 {119 $return = Rendering::file($randomPagePath, $randomDataVariable);120 }121 else122 {123 $return = Buffering::file($randomPagePath, $randomDataVariable);124 }125
152 * @param string $randomPageDir = PAGES_DIR153 * 154 * @return void|mixed155 */156 protected static function _templateWizard($page, $data, $obGetContents, $randomPageDir = PAGES_DIR)157 {158 $return = self::_page($page, $data, true, $randomPageDir, true);159160 if( $obGetContents === true )161 {162 return $return;163 }164
7576 if( is_file($randomPageDir . Base::suffix($page, '.php')) && ! strstr($page, self::$templateWizardExtension) )77 {78 return self::_page($page, $data, $obGetContents, $randomPageDir);79 }8081 return self::_templateWizard(Base::suffix(Base::removeSuffix($page, '.php'), self::$templateWizardExtension), $data, $obGetContents, $randomPageDir);82 }8384 /**85 * Get view86 * 87 * @param string $page
9394 /**95 * Protected create singleton instance96 */97 protected static function createSingletonInstance($class, $method, $parameters)98 {99 return Singleton::class(self::getCalledClassNamespace() . $class)->$method(...$parameters);100 }101102 /**103 * Protected get called class namespace104 */105 protected static function getCalledClassNamespace()
73 if( ! self::isValidClassAndMethodName($class, $resolve) )74 {75 throw new Exception\InvalidFactoryMethod(NULL, $class); 76 }7778 # A new singleton inheritance class instance is created.79 $return = self::createSingletonInstance($resolve['class'], $resolve['method'], $parameters);8081 # The return value $this can be sent to ensure object continuity.82 if( isset($resolve['this']) )83 {84 $parent = get_called_class();85
25 * @param array $parameters26 * 27 * @return mixed28 */29 public function __call($method, $parameters)30 {31 return $this->call($method, $parameters);32 }3334 /**35 * Magic call36 * 37 * @param string $method
37 * @param array $parameters38 * 39 * @return mixed40 */41 protected static function useClassName($method, $parameters)42 {43 return Singleton::class(static::target)->$method(...$parameters);44 }45}
11 * @param array $parameters12 * 13 * @return mixed14 */15 public static function __callStatic($method, $parameters)16 {17 return self::useClassName($method, $parameters);18 }1920 /**21 * Magic call22 * 23 * @param string $method
1@view('Sections/Public/header')2<main id="main-content">3 @view4</main>5@view('Sections/Public/footer')6@view('Sections/Shared/modals')7@view('Sections/Public/scripts')
72 {73 extract($randomBufferClassDataVariable, EXTR_OVERWRITE, 'KUT');74 }7576 ob_start();7778 require $randomBufferClassPagePath;7980 $randomBufferClassPageContents = ob_get_contents();8182 ob_end_clean();8384 return $randomBufferClassPageContents;
119120 /**121 * Compile and execute a Wizard template.122 */123 public static function file(string $file, ?array $data = NULL) : string124 {125 return Buffering::file(self::compile($file), $data);126 }127128 /**129 * Return source information stored in a compiled template.130 *131 * @return object|false
113 if( is_file($randomPagePath) )114 {115 # The template is compiled into a real php file and that file is included.116 # Thus the file and the line of a possible php error are not lost.117 if( $randomIsWizard === true )118 {119 $return = Rendering::file($randomPagePath, $randomDataVariable);120 }121 else122 {123 $return = Buffering::file($randomPagePath, $randomDataVariable);124 }125
152 * @param string $randomPageDir = PAGES_DIR153 * 154 * @return void|mixed155 */156 protected static function _templateWizard($page, $data, $obGetContents, $randomPageDir = PAGES_DIR)157 {158 $return = self::_page($page, $data, true, $randomPageDir, true);159160 if( $obGetContents === true )161 {162 return $return;163 }164
7576 if( is_file($randomPageDir . Base::suffix($page, '.php')) && ! strstr($page, self::$templateWizardExtension) )77 {78 return self::_page($page, $data, $obGetContents, $randomPageDir);79 }8081 return self::_templateWizard(Base::suffix(Base::removeSuffix($page, '.php'), self::$templateWizardExtension), $data, $obGetContents, $randomPageDir);82 }8384 /**85 * Get view86 * 87 * @param string $page
186 $randomPageVariable = $head['bodyPage'] ?? $masterPageSet['bodyPage'];187188 if( ! empty($randomPageVariable) )189 {190 $randomDataVariable['view'] = $bodyContent;191192 View::use($randomPageVariable, $randomDataVariable, false, $viewDirectory);193 }194 else195 {196 echo $bodyContent; // @codeCoverageIgnore197 }198
356 # Merge sent data.357 $data = array_merge($inData, Masterpage::$data);358359 # if sent data via Masterpage. Enables MasterPage.360 if( ($data['masterpage'] ?? NULL) === true || ! empty($data) )361 {362 (new Inclusion\Masterpage)->headData($data)->bodyContent($usableView)->use($data);363 }364 // @codeCoverageIgnoreStart365 # Otherwise, it prints without using the masterpage.366 elseif( ! empty($usableView) )367 {368 echo $usableView;
157158 # The selected view is not passed over quietly when it is missing.159 self::selectedViewControl($selectedView, $wizardPath, $viewPath);160 }161 162 # The view is automatically loading.163 self::viewAutoload($wizardPath, $viewPath); 164 165 # The operation of the system core is completes.166 self::end();167 }168169 /**
134 # Normalize the selected project mode.135 define('PROJECT_MODE', strtolower(PROJECT_CONFIG['mode'] ?? 'development'));136137 # Dispatch the HTTP kernel and render uncaught failures consistently.138 try 139 { 140 Kernel::run();141 }142 catch( Throwable $e )143 {144 Exceptions::table($e);145 }146 }
27|--------------------------------------------------------------------------28|29| The version declared here is the single version of the complete framework.30|31*/32 33Kut\Kut::run('1.0.0', 'Kur. Uyarla. Türet.');