public static function getNodeArray($type = -1)
{
$nodeList = null;
$selectSQL = "SELECT * FROM node ";
if ($type != -1) {
$selectSQL .= " WHERE type=?";
}
$selectSQL .= " ORDER BY `order`";
$statement = DB::getInstance()->prepare($selectSQL);
$statement->bindValue(1, $type);
$statement->execute();
return $statement->fetchAll(DB::FETCH_CLASS, __CLASS__);
}