PHP Classes

File: import.example.php

Recommend this page to a friend!
  Classes of Mohammed Cherkaoui   Simple Hook and Plug-ins System (XML)   import.example.php   Download  
File: import.example.php
Role: Example script
Content type: text/plain
Description: Example for importing
Class: Simple Hook and Plug-ins System (XML)
Extend class functionality with code define in XML
Author: By
Last change:
Date: 14 years ago
Size: 302 bytes
 

Contents

Class file image Download
<?php


require('hook.php');

// Import a product
$Product = new products('example.xml');
$Import = $Product->Import();
if(
$Import)
{
echo
'Succed';
} elseif(!
$Import)
{
echo
'Arab : ' . $Product->ArLastError() . '<br>';
echo
'English : ' . $Product->EnLastError() . '<br>';
}



?>