compileAllConfig()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 5
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * Smarty Method CompileAllConfig
5
 *
6
 * Smarty::compileAllConfig() method
7
 *
8
 * @package    Smarty
9
 * @subpackage PluginsInternal
10
 * @author     Uwe Tews
11
 */
12
class Smarty_Internal_Method_CompileAllConfig extends Smarty_Internal_Method_CompileAllTemplates
13
{
14
    /**
15
     * Compile all config files
16
     *
17
     * @api Smarty::compileAllConfig()
18
     *
19
     * @param \Smarty $smarty        passed smarty object
20
     * @param string  $extension     file extension
21
     * @param bool    $force_compile force all to recompile
22
     * @param int     $time_limit
23
     * @param int     $max_errors
24
     *
25
     * @return int number of template files recompiled
26
     */
27
    public function compileAllConfig(
28
        Smarty $smarty,
29
        $extension = '.conf',
30
        $force_compile = false,
31
        $time_limit = 0,
32
        $max_errors = null
33
    ) {
34
        return $this->compileAll($smarty, $extension, $force_compile, $time_limit, $max_errors, true);
35
    }
36
}
37