# 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                                                                                                                                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.clipbucket.com/fundamentals/basic-understandings/videos-class-and-functions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
