It looks to me like you're using the class properly. If you're confused about the use of "$this": "$this" is a stand-in for the name of the object calling the class method, and is used only inside the class definition (as in your code). For instance:
$obj_1 = new Page;
$obj_2 = new Page;
$obj_1->setContent('Object 1');
$obj_2->setContent('Object 2');
In each of these cases, "$this", in the class method definition, stands for the calling ("current") object, "$obj_1" in the first case, and "$obj_2" in the second case.
Classes are often kept in separate files, with names like "Page.class.php", then included in scripts that use them.