コード例 #1
0
ファイル: content.php プロジェクト: bogdananton/vsc
<?php

use vsc\infrastructure\StringUtils;
use vsc\infrastructure\vsc;
use vsc\Exception;
/* @var $this \vsc\presentation\views\PlainTextView  */
?>
Default TXT template

This is the default txt template from the <?php 
echo StringUtils::stripTags(vsc::name());
?>
 framework.
In order to add content, you need to:

	- add the <?php 
echo $this->getViewFolder();
?>
 folder in your module's template folder: <?php 
echo $this->getMap()->getTemplatePath();
?>

	- add the default template <?php 
echo $this->getTemplate();
?>


These settings are defined in one of the following files:

<?php 
foreach (get_included_files() as $sFileName) {
コード例 #2
0
ファイル: content.php プロジェクト: bogdananton/vsc
/* @var $this \vsc\presentation\views\RssView */
/* @var $item \vsc\domain\domain\RssItem */
use vsc\infrastructure\vsc;
?>
		<item>
			<title>Default RSS template</title>
			<link><?php 
echo $this->getCurrentUri();
?>
</link>
			<author><?php 
echo 'admin@' . $_SERVER['HTTP_HOST'];
?>
</author>
			<description><![CDATA[ This is the default RSS template from the <?php 
echo vsc::name();
?>
 framework.<br/>
In order to add content, you need to:
<ol>
	<li>add the <strong><?php 
echo $this->getViewFolder();
?>
</strong> folder in your module's template folder: <pre><?php 
echo $this->getMap()->getTemplatePath();
?>
</pre></li>
	<li>add the default template <pre><?php 
echo $this->getTemplate();
?>
</pre></li>
コード例 #3
0
ファイル: nameTest.php プロジェクト: bogdananton/vsc
 public function testBasicName()
 {
     $this->assertEquals('VSC', strip_tags(vsc::name()));
 }