403Webshell
Server IP : 193.146.211.90  /  Your IP : 10.85.6.55
Web Server : Apache
System : Linux wordpress-gti-69dcdb54f7-n4wdq 6.11.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Fri, 15 Nov 2024 15:35:07 +0000 x86_64
User : 1001 ( 1001)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/presto-player/inc/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/presto-player/inc/Models/ModelInterface.php
<?php

namespace PrestoPlayer\Models;

interface ModelInterface {

	/**
	 * Sets attributes in the model
	 *
	 * @param array $args
	 * @return ModelInterface
	 */
	public function set( $args );

	/**
	 * Gets a model from the database
	 *
	 * @param integer $id
	 * @return ModelInterface
	 */
	public function get( $id );

	/**
	 * Attempt to locate a database record using the given
	 * column / value pairs. If the model can NOT be found
	 * in the database, a record will be inserted with
	 * the attributes resulting from merging the first array
	 * argument with the optional second array argument.
	 *
	 * @param array $search Model to search for
	 * @param array $create Attributes to create
	 * @return void
	 */
	public function firstOrCreate( $search, $create );

	/**
	 * Re-retrieve the instance from the database
	 *
	 * @return ModelInterface
	 */
	public function fresh();

	/**
	 * Fetch all models from the database
	 *
	 * @return array Array of ModelInterface objects
	 */
	public function all();

	/**
	 * Fetch models from the database
	 *
	 * @param array $args
	 * @return array Array of ModelInterface objects
	 */
	public function fetch( $args );

	/**
	 * Create a new model in the database
	 *
	 * @param array $args
	 * @return int ID of the created model
	 */
	public function create( $args );

	/**
	 * Convenience function to create and get model
	 *
	 * @param array $args Model creation args
	 * @return Model
	 */
	public function createAndGet( $args );

	/**
	 * Update an existing model or create a new model if no matching model exists
	 *
	 * @param array $search
	 * @param array $create
	 * @return Model
	 */
	public function updateOrCreate( $search, $create );

	/**
	 * Update a model in the database
	 *
	 * @param array $args
	 * @return ModelInterface
	 */
	public function update( $args );

	/**
	 * Trash a model
	 *
	 * @return ModelInterface
	 */
	public function trash();

	/**
	 * Untrash a model
	 *
	 * @return ModelInterface
	 */
	public function untrash();

	/**
	 * Permanently delete a model
	 *
	 * @return bool
	 */
	public function delete();
}

Youez - 2016 - github.com/yon3zu
LinuXploit