> For the complete documentation index, see [llms.txt](https://docs.clipbucket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clipbucket.com/fundamentals/basic-understandings/videos-class-and-functions.md).

# Videos Class & Functions

```
//Class is initated as  $vdo
$vdo->get_video($videoid);
```

Absolute Path of the Class File **/includes/classes/videos.class.php**

Absolute Path of teh functions file **/includes/functions\_videos.php**

{% hint style="info" %}
For Some Odd Reason, I know. submit\_upload (Add Video Method) was written in /includes/class/upload.class.php
{% endhint %}

| Object Methods                                                                                                                                                                                                                                            | Functions                                             | Purpose                                                                                                                                              |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| ::get\_basic\_fields()                                                                                                                                                                                                                                    |                                                       |                                                                                                                                                      |
| ::video\_exists(int $video)                                                                                                                                                                                                                               | video\_exists(int $videoid);                          |                                                                                                                                                      |
| <p>::get\_video(int $vid, bool $file, bool $basic)</p><p></p><p>$vid = videoid</p><p>$file = if set to true $vid will be searched in file\_name column instead of videoid column</p><p></p><p>$basic = if set to true, only basic fields are returned</p> | <p>get\_<em>video(); same has ::get</em>Video<br></p> |                                                                                                                                                      |
| ::get\_video(int $videoid)                                                                                                                                                                                                                                | get\_video(int $vid)                                  | get video details                                                                                                                                    |
| ::video\_exists(int $vid)                                                                                                                                                                                                                                 | video\_exists(int $vid);                              | check if video exists                                                                                                                                |
| ::action($case, $videoid)                                                                                                                                                                                                                                 |                                                       | <p>Case Values</p><p><strong>activate</strong></p><p><strong>deactivate</strong></p><p><strong>feature</strong></p><p><strong>unfeature</strong></p> |
| ::delete\_video(int $vid)                                                                                                                                                                                                                                 |                                                       |                                                                                                                                                      |
| ::get\_videos(array $params)                                                                                                                                                                                                                              | get\_videos()                                         | Get list of videos                                                                                                                                   |
