// Register custom repository template if it has one
if(method_exists($repository, 'get_upload_template') && !array_key_exists('uploadform_' . $meta->type, $templatesinitialized)) {
$thumbnailavailable = $thumbnailavailable && ($repo = repository::get_repository_by_id($repoid, $contextid));
$thumbnailavailable = $thumbnailavailable && method_exists($repo, 'send_thumbnail');
// MDL-12346, this could be called from lesson mod which has its own base class =(.
if (method_exists($this, 'try_importing_using_qtypes')
if (!method_exists($helper, $method)) {
// Field validation check.
if (method_exists($field, 'field_validation')) {
if (method_exists($field, 'update_content_import')) {
$plagiarismplugin = new $plagiarismclass;
if (method_exists($plagiarismplugin, 'cron')) {
foreach($properties as $property => $value) {
if (method_exists($this, "set_$property")) {
if(method_exists($this,"set_$property")) {
$manager = get_log_manager();
if (method_exists($manager, 'legacy_add_to_log')) {
echo "No XHProf runs specified in the URL.";
if (method_exists($xhprof_runs_impl, 'list_runs')) {
if (method_exists($classObj, $parts[1])) {
$sendMethod = $this->Mailer.'Send';
if (method_exists($this, $sendMethod)) {
if (class_exists('DOMDocument') &&
method_exists('DOMDocument', 'loadHTML') &&
foreach ($this->_elements as $element){
if (method_exists($element, 'setHiddenLabel')){
$methodname = "get_area_{$component}_{$filearea}";
if (method_exists($this, $methodname)) {