Kenneth Reitz
2010-05-03 16:23:30 -04:00
parent 3eb13e33ea
commit b3f759dc13
43 changed files with 908 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
class Complex extends Mustache {
public $header = 'Colors';
public $item = array(
array('name' => 'red', 'current' => true, 'url' => '#Red'),
array('name' => 'green', 'current' => false, 'url' => '#Green'),
array('name' => 'blue', 'current' => false, 'url' => '#Blue'),
);
public function notEmpty() {
return !($this->isEmpty());
}
public function isEmpty() {
return count($this->item) === 0;
}
}