# depicter/1.5.2/app/src/DataSources/Base.php

Depicter — Popup &amp; Slider Builder, version 1.5.2. 55 lines.

- Page: https://pluginprobe.com/plugins/depicter/1.5.2/code/app/src/DataSources/Base.php
- Raw: https://pluginprobe.com/plugins/depicter/1.5.2/raw/app/src/DataSources/Base.php
- Modified: 2022-07-25T11:57:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/depicter/1.5.2/code/app/src/DataSources/Base.php#L10-L20`.

```php
<?php
namespace Depicter\DataSources;

abstract class Base
{
	/**
	 * Source name
	 *
	 * @var string
	 */
	protected $type;

	/**
	 * Input params to filter source result
	 *
	 * @var array
	 */
	protected $params;

	/**
	 * List of valid dynamic tags for this source
	 *
	 * @var string[]
	 */
	protected $tags;

	/**
	 * Prepares query arguments to get records
	 *
	 * @param array|object $args
	 *
	 * @return array
	 */
	abstract protected function prepare( $args );

	/**
	 * Renders preview for query params
	 *
	 * @param array $args
	 *
	 * @return array
	 */
    abstract public function previewRecords( array $args = [] );

	/**
	 * Get list of tags and their values for the query result
	 *
	 * @param array $args
	 *
	 * @return array
	 */
	abstract public function getRecordsWithTags( array $args = [] );

}

```
