Class Showcases - echiong/testRepo GitHub Wiki

##Class Showcases

Showcases class handles showcase type related operations.

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

##Methods summary


public __construct ( )

Constructor

###Overrides Framework_Controller::__construct()


public string a_create ( )

Handles the Showcase create form submission.

Returns string
Returns the showcase details url of the created record.


public create ( )

Displays the Showcase create page.


public details ( integer $feat_id )

Displays a specific Showcase record detail.

Parameters

$feat_id integer
$feat_id Showcase record id.

Uses Comments_model::get_by_component()


public player ( integer $id, integer $width = 640, integer $height = null )

Display the Showcase player.

Parameters

$id integer
$id Showcase record id.

$width integer
$width Numeric width value.

$height integer
$height Numeric height value.


public preview ( string $sc, string $video, string $provider = 'youtube', string $second_ID = null, integer $width = 730, integer $height = 320 )

Display the Showcase preview.

Parameters

$sc string
$sc Soundcloud record id.

$video string
$video Video record id.

$provider string
$provider Video provider - youtube / vimeo

$second_ID string
$second_ID String of feat users.

$width integer
$width Numeric width value.

$height integer
$height Numeric height value.


public mine ( )

NOTE: I don't think we use this.

Uses Feats::feats_model()

Methods inherited from CI_Controller

get_instance()

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