blogroll.php
14 years ago
comment.php
14 years ago
custom_field.php
14 years ago
dummy.php
15 years ago
dummy.php
77 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | Plugin Name: Dummy |
| 5 | Description: |
| 6 | Version: 1.0 |
| 7 | Author: Janis Elsts |
| 8 | |
| 9 | ModuleID: dummy |
| 10 | ModuleCategory: container |
| 11 | ModuleClassName: blcDummyManager |
| 12 | ModuleAlwaysActive: true |
| 13 | ModuleHidden: true |
| 14 | */ |
| 15 | |
| 16 | /** |
| 17 | * A "dummy" container class that can be used as a fallback when the real container class can't be found. |
| 18 | * |
| 19 | * |
| 20 | * @package Broken Link Checker |
| 21 | * @access public |
| 22 | */ |
| 23 | class blcDummyContainer extends blcContainer{ |
| 24 | |
| 25 | function synch(){ |
| 26 | //Just mark it as synched so that it doesn't bother us anymore. |
| 27 | $this->mark_as_synched(); |
| 28 | } |
| 29 | |
| 30 | function edit_link($field_name, $parser, $new_url, $old_url = '', $old_raw_url = ''){ |
| 31 | return new WP_Error( |
| 32 | 'container_not_found', |
| 33 | sprintf( |
| 34 | __("I don't know how to edit a '%s' [%d].", 'broken-link-checker'), |
| 35 | $this->container_type, |
| 36 | $this->container_id |
| 37 | ) |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | function unlink($field_name, $parser, $url, $raw_url =''){ |
| 42 | return new WP_Error( |
| 43 | 'container_not_found', |
| 44 | sprintf( |
| 45 | __("I don't know how to edit a '%s' [%d].", 'broken-link-checker'), |
| 46 | $this->container_type, |
| 47 | $this->container_id |
| 48 | ) |
| 49 | ); |
| 50 | } |
| 51 | |
| 52 | function ui_get_source($container_field, $context = 'display'){ |
| 53 | return sprintf( |
| 54 | '<em>Unknown source %s[%d]:%s</em>', |
| 55 | $this->container_type, |
| 56 | $this->container_id, |
| 57 | $container_field |
| 58 | ); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * A dummy manager class. |
| 64 | * |
| 65 | * @package Broken Link Checker |
| 66 | * @access public |
| 67 | */ |
| 68 | class blcDummyManager extends blcContainerManager { |
| 69 | |
| 70 | var $container_class_name = 'blcDummyContainer'; |
| 71 | |
| 72 | function resynch($forced = false){ |
| 73 | //Do nothing. |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | ?> |