PHP 클래스 Addons_model, 68kb

상속: extends CI_Model
파일 보기 프로젝트 열기: 68kb/68kb

공개 메소드들

메소드 설명
__construct ( ) Constructor
activate ( $module_directory ) : boolean Activate a module
exists ( $module_directory, $file = '' ) : boolean Checks if a module file exists
get_config ( $module_directory ) : array Get an add-on's config.php and return the $data array.
get_module ( $module_id ) : array Get a single module
init_module ( $module_name, $action = '', $msg = '' ) : mixed Install an add-on
load_active ( ) : array Loads active add-ons
load_inactive ( ) : array Loads inactive add-ons
remove_dir ( $module_directory ) : boolean Try to remove the add-on directory
show_docs ( $module_name ) : mixed Show A Module read-me page.

비공개 메소드들

메소드 설명
_get_addons ( ) : array Get all active add-ons
_get_config ( $module_directory ) : array Get an add-on's config.php and return the $data array.
_load_init ( $module_name ) : boolean Load an add-on init file

메소드 상세

__construct() 공개 메소드

Setup add-ons path.
public __construct ( )

activate() 공개 메소드

Activate a module
public activate ( $module_directory ) : boolean
리턴 boolean

exists() 공개 메소드

Checks if a module file exists
public exists ( $module_directory, $file = '' ) : boolean
리턴 boolean

get_config() 공개 메소드

If the config.php file is not found or the $data array is not present it returns an empty array.
public get_config ( $module_directory ) : array
리턴 array

get_module() 공개 메소드

Get a single module
public get_module ( $module_id ) : array
리턴 array

init_module() 공개 메소드

Install an add-on
public init_module ( $module_name, $action = '', $msg = '' ) : mixed
리턴 mixed

load_active() 공개 메소드

Loads active add-ons
public load_active ( ) : array
리턴 array

load_inactive() 공개 메소드

Scans the add-ons directory for inactive add-ons
public load_inactive ( ) : array
리턴 array

remove_dir() 공개 메소드

Try to remove the add-on directory
public remove_dir ( $module_directory ) : boolean
리턴 boolean

show_docs() 공개 메소드

Show A Module read-me page.
public show_docs ( $module_name ) : mixed
리턴 mixed