Forums | Mahara Community

Open Discussion /
for Creating a New plugins issues


anonymous profile picture
Account deleted
Posts: 92

08 May 2010, 6:42

I already created the plugins development under artefact. i includes the file called lib.php , version.php , db folder etc.

Under development i includes the personal Development plan form .

in lib.php i got confused.

Here is code

defined('INTERNAL') || die();

class PluginArtefactDevelopment extends PluginArtefact {
    
    public static function get_artefact_types() {
        return array(
            'personalplan',
            'plandate',
            'cdate',
            'strength',
            'weakness',
            'opportunities',
            'threats',
            'books',
            'training',
            'weblinks',
            'electronic',
            'others',
            'reflection',
                    );
     }
    
    public static function get_block_types() {
        return array();
    }

    public static function get_plugin_name() {
        return 'development';
    }

    public static function menu_items() {
        return array(
            
            array(
                'path' => 'profile/mypersonaldevelopmentplan',
                'title' => get_string('mypersonaldevelopmentplan', 'artefact.development'),
                'url' => 'artefact/internal/personaldevelopmentplan.php',
                'weight' => 21,
            ),
            
        );
    }

    public static function get_artefact_type_content_types() {
        return array(

            'personalplan'   => array('text'),
            'plandate'      => array('text'),
            'cdate'         => array('text'),
            'strength'      => array('text'),
            'weakness'      => array('text'),
            'opportunities' => array('text'),
            'threats'      => array('text'),
            'books'       => array('text'),
            'training'   => array('text'),
            'weblinks'   => array('text'),
            'electronic' => array('text'),
            'others'     => array('text'),
            'reflection' => array('text'),
            
        );
    }
           
    }
    

?>

when i go to administration Extension / plugin administration in this it gives me the below Error.

Not installed plugins development Not installable! class ArtefactTypePersonalplan for type personalplan in plugin was missing

Please Help Me.

1 result