Modules\Doptor\Slideshow\Models\Slideshow::all_status PHP Method

all_status() public static method

Get all the statuses available for a post
public static all_status ( ) : array
return array
    public static function all_status()
    {
        return array('published' => 'Publish', 'unpublished' => 'Unpublish', 'drafted' => 'Draft', 'archived' => 'Archive');
    }

Usage Example

Example #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $this->layout->title = 'Edit slide';
     $all_statuses = Slideshow::all_status();
     $this->layout->content = View::make('slideshow::slideshow.create_edit')->with('slide', Slideshow::findOrFail($id))->with('all_statuses', $all_statuses);
 }