mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-08 00:01:38 +01:00
51 lines
709 B
PHP
51 lines
709 B
PHP
<?php
|
|
/**
|
|
* Smarty Resource Plugin
|
|
*
|
|
|
|
|
|
* @author Rodney Rehm
|
|
*/
|
|
|
|
namespace Smarty\Resource;
|
|
|
|
use Smarty\Template;
|
|
|
|
/**
|
|
* Smarty Resource Plugin
|
|
* Base implementation for resource plugins that don't compile cache
|
|
*
|
|
|
|
|
|
*/
|
|
abstract class RecompiledPlugin extends BasePlugin {
|
|
|
|
/**
|
|
* Flag that it's an recompiled resource
|
|
*
|
|
* @var bool
|
|
*/
|
|
public $recompiled = true;
|
|
|
|
/**
|
|
* Flag if resource does allow compilation
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function supportsCompiledTemplates(): bool {
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
* Disable timestamp checks for recompiled resource.
|
|
*
|
|
* @return bool
|
|
*/
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function checkTimestamps() {
|
|
return false;
|
|
}
|
|
}
|