}); // Only a user logged in as webmaster (eg currentCodeName below returns 'webmaster') // and above can change who can edit elements $config->levelNeededForAdmin = 'webmaster'; $config->currentCodeName(function () { // This should return the code for the EasyEditingUserType of the currently // logged in user // Here we are hard coding that everyone is a webmaster (don't do this!) return 'webmaster'; }); ?> <html> <head> <title>PHP Easy Editing Example</title> <?php echo EasyEditingConfiguration::getHtmlHeaderTags('src/'); ?> </head> <body> <?php $easyEditingObject1 = new EasyEditingElement($pdo, 1); echo $easyEditingObject1->getContent(); ?> <?php $easyEditingObject2 = new EasyEditingElement($pdo, 2); echo $easyEditingObject2->getContent(); ?> </body> </html>