Example #1
0
 public function testBehaviour()
 {
     $novel = new Novel();
     $novel->getWeight();
 }
Example #2
0
    //$allfiction;
}
//echo $result['category1'][0];
//echo "boop ".var_dump($result);
// *SETUP CATEGORY1 categories
//foreach ($result['category1'] as $key => $value) {
//    echo "Key: $key; Value: $value<br />\n";
//}
/*Key: scifi; Value: Science Fiction<br />
Key: horror; Value: Horror<br />
Key: fantasy; Value: Fantasy<br />
*/
$arrcount = -1;
foreach ($result['works'] as $valu) {
    $arrcount++;
    array_push($novels, Novel::AddNovelFromArray($valu, $arrcount));
}
function cmp($a, $b)
{
    if ($a->priority == $b->priority) {
        return 0;
    }
    return $a->priority < $b->priority ? -1 : 1;
}
usort($novels, "cmp");
/*foreach ($result['works'][work1] as $key => $value) {
    echo "Key: $key; Value: $value<br />\n";
	} */
/*HELP FILE

Categories - Special