fenom/src/Cytro/ProviderInterface.php

44 lines
913 B
PHP
Raw Normal View History

<?php
2013-04-28 11:33:36 +04:00
/*
* This file is part of Cytro.
*
* (c) 2013 Ivan Shalganov
*
2013-04-28 18:08:57 +04:00
* For the full copyright and license information, please view the license.md
2013-04-28 11:33:36 +04:00
* file that was distributed with this source code.
*/
2013-04-04 10:56:44 +04:00
namespace Cytro;
interface ProviderInterface {
/**
* @param string $tpl
* @return bool
*/
public function isTemplateExists($tpl);
/**
* @param string $tpl
2013-02-13 18:52:47 +04:00
* @param int $time
* @return string
*/
2013-02-13 18:52:47 +04:00
public function getSource($tpl, &$time);
/**
* @param string $tpl
* @return int
*/
public function getLastModified($tpl);
2013-02-21 22:51:24 +04:00
/**
* 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
*/
2013-02-13 18:52:47 +04:00
public function getList();
}