Class Voices - echiong/testRepo GitHub Wiki

##Class Voices

Voices class handles operations for voice component related operations.

Package: [[application<a href="Package application.controlllers.md">controlllers]]
Extends: Framework_controller
Located at application/controllers/voices.php

##Methods summary


public __construct ( )

Constructor

###Overrides Framework_Controller::__construct()


public create ( )

Displays the voice create page.


public string create_submit ( )

End-point for voice create submit.

Returns string
Returns ok::[voice id] on success or an error message on failure.

Uses Components_model::create() CommercialContent_model::create()


public edit ( integer $id )

Displays the Voice edit page.

Parameters

$id integer
$id Voice record id.


public string edit_submit ( )

Method for Voice edit submit.

Returns string
Returns ok on success or an error message on failure.

Uses Components_model::edit()


public get_list ( integer $offset = 0, integer $limit = 100 )

Displays a list of voice components. NOTE: Deprecated: use components/get_list instead.

Parameters

$offset integer
$offset A numeric offset value.

$limit integer
$limit A numeric limit value.

Uses Components_model::get() Components_model::get_list()


public get ( integer $id )

Endpoint which returns the details of a specific record.

Parameters

$id integer
$id Voice record id.

Uses Components_model::get()


public details ( integer $voice_id )

Displays the layout for the Voice record details.

Parameters

$voice_id integer
$voice_id Voice record id.

Uses Components_model::get()

Methods inherited from CI_Controller

get_instance()

⚠️ **GitHub.com Fallback** ⚠️