%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/waritko/import-prestashop/
Upload File :
Create Path :
Current File : //home/waritko/import-prestashop/Nakladatel.php

<?php

/**
 * Created by PhpStorm.
 * User: Ludek
 * Date: 10. 9. 2016
 * Time: 14:05
 */
include_once "database.php";


class Nakladatel
{
    function eanToId($ean)
    {
        $result = dibi::query("SELECT [id_product], [import_id] FROM [ps_product] WHERE [ean13]=%s", $ean);
        if(count($result) == 0)
            return false;
        $row = $result->fetch();
        $retVal = new stdClass();
        $retVal->importId = $row->import_id;
        $retVal->id = $row->id_product;
        return $retVal;
    }
}

Zerion Mini Shell 1.0