-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new IViewSettable interface to replace in near future iModuleVi…
…ewable
- Loading branch information
1 parent
bd80d49
commit f0e0dae
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: egorov | ||
* Date: 12.12.2014 | ||
* Time: 11:23 | ||
*/ | ||
|
||
namespace samson\core; | ||
|
||
/** | ||
* Interface for giving an object ability to be passed | ||
* to IViewable for rendering | ||
* @package samson\core | ||
* @author Vitaly Iegorov <egorov@samsonos.com> | ||
*/ | ||
interface IViewSettable | ||
{ | ||
/** | ||
* Generate collection of view variables, prefixed if needed, that should be passed to | ||
* view context. | ||
* | ||
* @param string $prefix Prefix to be added to all keys in returned data collection | ||
* @return array Collection(key => value) of data for view context | ||
*/ | ||
public function toView($prefix = ''); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters