Lines Matching full:if
108 * Check if the class is one of the fixed names
111 * @return bool true if the class was loaded, false otherwise
115 if (isset($this->fixedClassNames[$className])) {
123 * Check if the class is a test mock class
126 * @return bool true if the class was loaded, false otherwise
130 if ($this->prefixStrip($classPath, 'dokuwiki/test/mock/')) {
132 if (file_exists($file)) {
141 * Check if the class is a test mock class
144 * @return bool true if the class was loaded, false otherwise
148 if ($this->prefixStrip($classPath, 'dokuwiki/test/')) {
150 if (file_exists($file)) {
159 * Check if the class is a namespaced plugin class
162 * @return bool true if the class was loaded, false otherwise
168 if ($this->prefixStrip($classPath, 'dokuwiki/plugin/')) {
171 if (file_exists($file)) {
173 // don't load disabled plugin classes (only if plugin controller is available)
174 … if (!defined('DOKU_UNITTEST') && $plugin_controller && plugin_isdisabled($plugin)) return false;
188 * Check if the class is a namespaced template class
191 * @return bool true if the class was loaded, false otherwise
196 if ($this->prefixStrip($classPath, 'dokuwiki/template/')) {
199 if (file_exists($file)) {
214 * Check if the class is a namespaced DokuWiki core class
217 * @return bool true if the class was loaded, false otherwise
221 if ($this->prefixStrip($classPath, 'dokuwiki/')) {
223 if (file_exists($file)) {
232 * Check if the class is a un-namespaced plugin class following our naming scheme
235 * @return bool true if the class was loaded, false otherwise
241 if (
252 if (file_exists($plg)) {
253 // don't load disabled plugin classes (only if plugin controller is available)
254 … if (!defined('DOKU_UNITTEST') && $plugin_controller && plugin_isdisabled($m[2])) return false;
267 * Check if the given string starts with the given prefix and strip it
271 * @return bool true if the prefix was found and stripped, false otherwise
275 if (str_starts_with($string, $prefix)) {