repo.or.cz
/
haanga.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- Optimized forloop.* variables
[haanga.git]
/
haanga
/
filters
/
join.php
blob
b7069385af23d6a85c8058056928e290d655a200
1
<
?php
2
3
class
Join_Filter
extends
Haanga_Filter
4
{
5
public function
generator
(
$compiler
,
$args
)
6
{
7
if
(
count
(
$args
) ==
1
) {
8
$args
[
1
] =
$compiler
->
expr_str
();
9
}
10
return
$compiler
->
expr_exec
(
"implode"
,
$args
[
1
],
$args
[
0
]);
11
}
12
}