fenom/src/Cytro/ProviderInterface.php

44 lines
913 B
PHP

<?php
/*
* This file is part of Cytro.
*
* (c) 2013 Ivan Shalganov
*
* For the full copyright and license information, please view the license.md
* file that was distributed with this source code.
*/
namespace Cytro;
interface ProviderInterface {
/**
* @param string $tpl
* @return bool
*/
public function isTemplateExists($tpl);
/**
* @param string $tpl
* @param int $time
* @return string
*/
public function getSource($tpl, &$time);
/**
* @param string $tpl
* @return int
*/
public function getLastModified($tpl);
/**
* Verify templates by change time
*
* @param array $templates [template_name => modified, ...] By conversation you may trust the template's name
* @return bool
*/
public function verify(array $templates);
/**
* @return array
*/
public function getList();
}