Exemplo n.º 1
0
 public function appendInnerTag(Tag $tag)
 {
     $this->innerHtmlTags->append($tag);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Returns a prefilled CategoryCollection
  *
  * @return  \BFewo\Iterator\CategoryCollection
  */
 protected function prepareCategoryCollection()
 {
     $categoryCollection = new CategoryCollection();
     for ($c = 0; $c < 5; $c++) {
         $postCollection = new PostCollection();
         $category = new Category($postCollection);
         $categoryCollection->append($category);
         for ($p = 0; $p < 5; $p++) {
             $tagCollection = new TagCollection();
             $post = new Post($tagCollection);
             $postCollection->append($post);
             for ($t = 0; $t < 5; $t++) {
                 $tag = new Tag();
                 $tagCollection->append($tag);
             }
         }
     }
     return $categoryCollection;
 }