function PMPAPIDrupal::report in Public Media Platform API Integration 7
Generates a basic report of PMP object.
Return value
array Various messages (strings) .
File
- classes/
PMPAPIDrupal.php, line 78 - Defines a class for PMP creation/transmission and retreival/parsing
Class
- PMPAPIDrupal
- @file
Code
function report() {
if (empty($this->errors)) {
$options = array(
'tag' => 'samplecontent',
'profile' => 'story',
);
$this
->pull($options);
return '<pre>' . print_r($this, 1) . '</pre>';
}
return '<pre>' . print_r($this->errors, 1) . '</pre>';
}