View file upload/src/addons/XenCentral/Feedback/Repository/ImportSource/ImportAbstract.php

File size: 2.19Kb
<?php
/**
 * @package XenCentral Feedback System
 * @author DNF Technology
 * @copyright Drnoyan & Nalyan LDA, Portugal, EU
 * @license http://dnf.technology/terms/
 * @link http://customers.dnf.technology
 * @version 2.0.0 Beta 10
 * @revision 12
 */

namespace XenCentral\Feedback\Repository\ImportSource;

use XF\Mvc\Entity\Repository;
use Xf\Db\AbstractAdapter;

class ImportAbstract extends Repository

{
    /**
     * Source database connection.
     *
     * @var Zend_Db_Adapter_Abstract
     */
    protected $_sourceDb;

    protected $_config;

    public function setSourceDb(&$db)
    {
        $this->_sourceDb=$db;
    }

    public function setConfig(&$config)
    {
        $this->_config = $config;
    }

    /**
     * @abstract
     * Returns the name of importer shown in the list
     * @return string
     */
    public  function getImporterTitle(){}

    /**
     * @abstract
     * @param $db Zend_Db
     * @param $prefix String
     * @throws Zend_Db_Exception
     * Throws exception if table prefix is not valid for the system
     */
    public  function assertTablePrefix($db, $prefix){}

    /**
     * @abstract
     * @param $db
     * @param $config
     * @param $errors
     * Allows modification of configuration values and additional errors to be shown from importer
     */
    public  function preImport($db, &$config, &$errors){}

    public  function getAllFeedback($start, $perpage){}

    public  function getForUserId($feedback){}

    public  function getFromUserId($feedback){}

    public  function getAmount($feedback){}

    /**
     * @abstract
     * @param $feedback
     * Should return feedback type converted to either buy, sell, or trade
     */
    public  function getType($feedback){}

    public  function getDealUrl($feedback){}

    public  function getThreadId($feedback){}

    public  function getDateline($feedback){}

    public  function getOriginalId($feedback){}

    public  function getFeedbackText($feedback){}

    public  function getIPAddress($feedback){}

    public  function getAllComments($originalId){}

    public  function getCommentUserId($comment){}

    public  function getCommentText($comment){}

    public  function getCommentDateline($comment){}
}