Skip to content

Instantly share code, notes, and snippets.

View arpitr's full-sized avatar

Arpit arpitr

  • Srijan Aravali Technologies
  • Goa
View GitHub Profile
<?php
include "citygrid-places-api-class.php";
/*
*
*
*/
class ExternalListingService {
<?php
include "citygrid-places-api-class.php";
/*
*
*
*/
class ExternalListingService {
<?php
class citygridplaces {
private $publishercode;
private $dbserver;
private $dbname;
private $dbuser;
private $dbpassword;
public function __construct($publishercode) {
<?php
// Including citygrid API
include "citygrid-places-api-class.php";
/*
* class ExternalLisitngService with methods to call citysearch API,update nodes on the basis of data
* from listing site,to count reviews from users,return all reviews form users
*
*/
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/
<?php
/*
* Doubts
* 1.there is no more need of lookupListing as we are having standardizeListingFormat()
* 2.Will the implementation of applyListingDataToLocalRecord() will go like this..
* 3.staticfunction of a class can access non static class variables?....
* 4.Need documentation for getListingData()
*/
@arpitr
arpitr / multiple website on local
Created May 4, 2012 20:52
vhost for a website www.arpit.com on local
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/newProject/drupal_multisite
ServerName www.arpit.com
ServerAlias wqizl.webmobilize.mobi
</VirtualHost>
@arpitr
arpitr / multiple website on local
Created May 4, 2012 20:53
vhost for a website webmobilize on local
NameVirtualHost *:80
<VirtualHost 127.0.0.1:80>
DocumentRoot /var/www/newProject/webmobi
ServerName webmobile
</VirtualHost>
@arpitr
arpitr / arpit default vhost file
Created May 4, 2012 21:03
setup multiple site on local
NameVirtualHost 127.0.0.1:80
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
@arpitr
arpitr / order
Created May 8, 2012 14:30
hook_uc_order()
<?php
/**
* Implementation of hook_ca_action().
*/
function webmobilize_ca_action() {
$order_arg = array(
'#entity' => 'uc_order',
'#title' => t('Order'),
);