Hi,
First I want to say, that I'm new to Php-Programming. I'm just a Java-Developer.
I want to write a php-File, which saves an Resource-Object to the Database. I have seen, that therefore is the dmllib.php with the method insert_record, which needs as parameter the object. Is this right? Now I've tried to include the resource_base and resource_text - Classes in my php-File, to create a resource_text-Object. But then there comes the following Error:
"Fatal error: Call to undefined function set_config() in C:\Dokumente und Einstellungen\User\Desktop\MoodleWindowsInstaller-latest-19\server\moodle\mod\resource\lib.php on line 10"
The resource_base class is defined in lib.php
The thing that confuses me is, how I can import the resource_base - Class, in my PHP-File, whithout executing the code around the class in the "lib.php". Sorry for this question, but I'm actually programming Java and I do not know, how it works under PHP. It confuses me a bit, that there is code in lib.php around the resource_base-Class. Could someone help me?
Thanks
Thomas