Exemplo n.º 1
0
                        open_kids_house($current_lang);
                        // 20,21,69
                        $kid_room_array['id'] = $kid->getEntryId();
                        $kid_room_array['text'] = substr($kid->getEntryText(), 0, 55);
                        $kid_room_array['user'] = $kid->getEntryUserId();
                        make_kid_room($kid_room_array);
                        // 70,23
                        unset($current_lang);
                        unset($prev_lang);
                    } else {
                        // 47
                        // 20,21,69
                        $kid_room_array['id'] = $kid->getEntryId();
                        $kid_room_array['text'] = substr($kid->getEntryText(), 0, 55);
                        $kid_room_array['user'] = $kid->getEntryUserId();
                        make_kid_room($kid_room_array);
                        // 70,23
                        unset($current_lang);
                        unset($prev_lang);
                    }
                    // 47
                }
                // 56
                $i++;
            }
            // 24
        }
        // 74
    }
    // 27
}
Exemplo n.º 2
0
    open_kids_house2();
    $o = 1;
    foreach ($orphans as $orphan) {
        //echo $o .". ". substr($orphan->getEntryText(),0,60);
        //echo "<br>";
        $ary['id'] = $orphan->getEntryId();
        $ary['language'] = $orphan->getEntryLanguage();
        $ary['text'] = $orphan->getEntryText();
        $ary['dad'] = $orphan->getEntryTranslOf();
        $ary['user'] = $orphan->getEntryUserId();
        $ary['creadate'] = $orphan->getEntryCreationDate();
        $em = new EntryManager();
        $ary['likes'] = $em->getEntryLikeNumByEntry($ary['id']) != "" ? $em->getEntryLikeNumByEntry($ary['id']) : 0;
        $ary['dislikes'] = $em->getEntryDislikeNumByEntry($ary['id']) != "" ? $em->getEntryDislikeNumByEntry($ary['id']) : 0;
        //dad_house_dad_1($ary);
        make_kid_room($ary);
        $o++;
    }
    close_kids_house();
}
?>
    </div><!-- village -->
  </div><!-- land -->

<?php 
require "footer.php";
//echo "<br>*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*";
/*
 * a problem is that when i create a new array of Entry objects
 * the count(array) returns , even though it has just been created.
 * so there's always one element more.