PHP code example of queryr / entity-store

1. Go to this page and download the library: Download queryr/entity-store library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

queryr / entity-store example snippets


use Queryr\EntityStore\EntityStoreFactory;
$factory = new EntityStoreFactory(
	$dbalConnection,
	new EntityStoreConfig( /* optional config */ )
);

$itemStore = $factory->newItemStore();
$propertyStore = $factory->newPropertyStore();

$itemStore->storeItemRow( $itemRow );
$itemStore->deleteItemById( $itemId );

$q42 = $itemStore->getItemRowByNumericItemId( 42 );

$lookup = $factory->newPropertyTypeLookup();
$propertyType = $lookup->getTypeOfProperty( $propertyId );

$itemInfoList = $itemStore->getItemInfo( 100, 0 );

$itemInfoList = $itemStore->getItemInfo( 100, 0, 424242 );

$itemTypes = $itemStore->getItemTypes();