/** Print the part inclusion debug comment
* @param string the name of the part
* @param string the debug mode
*/
function ($partName, $debug) {
print "\n<!-- $partName in $this";
if ($debug == 'verbose') {
print "\n";
print "options: (first * = succeeded)\n";
$bullet = method_exists($this, "print$partName") ? '*' : '-';
print $bullet.' $this->print'."$partName();\n";
$params = $this->($partName);
$info = '';
foreach ($params as $paramSet) {
$bullet = file_exists("../classes/$paramSet[1]class$paramSet[0].php")
? '*' : '-';
$info .= "$bullet Gen::tryIncludeClass('$paramSet[0]', '$paramSet[1]');\n"; //printPartDebugComment
}
print $info;
$dir = $this->();
$fileName = "../$dir"."skin".$this->()."$partName.php";
$bullet = file_exists($fileName) ? '*' : '-';
print "$bullet tryInclude('$fileName');\n";
$fileName = "../$dir"."skin$partName.php";
$bullet = file_exists($fileName) ? '*' : '-';
print "$bullet tryInclude('$fileName');\n";
$fileName = "../includes/skin$partName.php";
$bullet = file_exists($fileName) ? '*' : '-';
print "$bullet include('$fileName');\n"; //printPartDebugComment
}
print "-->\n";
}
|