Campustream 1.0
A social network MQP for WPI
|
00001 <?php 00002 00003 class Phlock_ExecuteOperation { 00004 00005 private $method; 00006 private $term; 00007 00008 public function __construct($method, Phlock_QueryTerm $term) { 00009 $this->method = $method; 00010 $this->term = $term; 00011 } 00012 00013 public function toThrift() { 00014 $thrift = new Flock_ExecuteOperation(array( 00015 'operation_type'=>$this->method, 00016 'term'=>$this->term->toThrift() 00017 )); 00018 return $thrift; 00019 } 00020 }