Primo commit: trasferimento del progetto PPEasy
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_Add_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
var $_fields = array();
|
||||
function FileMaker_Command_Add_Implementation($V0ab34ca9, $Vc6140495, $Vf09cc7ee = array())
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
foreach ($Vf09cc7ee as $V06e3d36f => $V2063c160) {
|
||||
if (!is_array($V2063c160)) {
|
||||
$V2063c160 = array($V2063c160);
|
||||
}
|
||||
$this->_fields[$V06e3d36f] = $V2063c160;
|
||||
}
|
||||
}
|
||||
function &execute()
|
||||
{
|
||||
if ($this->_fm->getProperty('prevalidate')) {
|
||||
$V9f7d0ee8 = $this->validate();
|
||||
if (FileMaker::isError($V9f7d0ee8)) {
|
||||
return $V9f7d0ee8;
|
||||
}
|
||||
}
|
||||
$Vc6140495 =& $this->_fm->getLayout($this->_layout);
|
||||
if (FileMaker::isError($Vc6140495)) {
|
||||
return $Vc6140495;
|
||||
}
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-new'] = true;
|
||||
foreach ($this->_fields as $V972bf3f0 => $Vee0525e4) {
|
||||
if (strpos($V972bf3f0, '.') !== false) {
|
||||
list($Vb068931c, $V11e868ac) = explode('.', $V972bf3f0, 2);
|
||||
$V11e868ac = '.' . $V11e868ac;
|
||||
} else {
|
||||
$Vb068931c = $V972bf3f0;
|
||||
$V06e3d36f = $Vc6140495->getField($V972bf3f0);
|
||||
if (FileMaker::isError($V06e3d36f)) {
|
||||
return $V06e3d36f;
|
||||
}
|
||||
if ($V06e3d36f->isGlobal()) {
|
||||
$V11e868ac = '.global';
|
||||
} else {
|
||||
$V11e868ac = '';
|
||||
}
|
||||
}
|
||||
foreach ($Vee0525e4 as $V6a992d55 => $V3a6d0284) {
|
||||
$V21ffce5b[$Vb068931c . '(' . ($V6a992d55 + 1) . ')' . $V11e868ac] = $V3a6d0284;
|
||||
}
|
||||
}
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
function setField($V06e3d36f, $V2063c160, $V6d786dc7 = 0)
|
||||
{
|
||||
$this->_fields[$V06e3d36f][$V6d786dc7] = $V2063c160;
|
||||
return $V2063c160;
|
||||
}
|
||||
function setFieldFromTimestamp($V972bf3f0, $Vd7e6d55b, $V6d786dc7 = 0)
|
||||
{
|
||||
$Vc6140495 =& $this->_fm->getLayout($this->_layout);
|
||||
if (FileMaker::isError($Vc6140495)) {
|
||||
return $Vc6140495;
|
||||
}
|
||||
$V06e3d36f = $Vc6140495->getField($V972bf3f0);
|
||||
if (FileMaker::isError($V06e3d36f)) {
|
||||
return $V06e3d36f;
|
||||
}
|
||||
switch ($V06e3d36f->getResult()) {
|
||||
case 'date':
|
||||
return $this->setField($V972bf3f0, date('m/d/Y', $Vd7e6d55b), $V6d786dc7);
|
||||
case 'time':
|
||||
return $this->setField($V972bf3f0, date('H:i:s', $Vd7e6d55b), $V6d786dc7);
|
||||
case 'timestamp':
|
||||
return $this->setField($V972bf3f0, date('m/d/Y H:i:s', $Vd7e6d55b), $V6d786dc7);
|
||||
}
|
||||
return new FileMaker_Error($this->_fm, 'Only time, date, and timestamp fields can be set to the value of a timestamp.');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_CompoundFind_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
var $_findCriteria = array();
|
||||
var $Vd65662c5 = array();
|
||||
var $Va9136a07 = array();
|
||||
var $V83f28691;
|
||||
var $V85fd701e;
|
||||
var $V6da136ea;
|
||||
var $V568aa2ec;
|
||||
var $Vad2bfd5a = array();
|
||||
function FileMaker_Command_CompoundFind_Implementation($V0ab34ca9, $Vc6140495)
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
}
|
||||
function &execute()
|
||||
{
|
||||
$V090cbceb= null;
|
||||
|
||||
$V8ac10dab = 0;
|
||||
$V31c3c8cf = 0;
|
||||
$V40677621 = 1;
|
||||
$Ve2942a04 = 1;
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$this->_setSortParams($V21ffce5b);
|
||||
$this->_setRangeParams($V21ffce5b);
|
||||
$this->_setRelatedSetsFilters($V21ffce5b);
|
||||
ksort($this->Vad2bfd5a);
|
||||
$V31c3c8cf=count($this->Vad2bfd5a);
|
||||
foreach ($this->Vad2bfd5a as $V70a17ffa => $V9a7aa128)
|
||||
{
|
||||
$V15c46c6e = $V9a7aa128->_impl->_findCriteria;
|
||||
$V8ac10dab = count($V15c46c6e);
|
||||
|
||||
$V090cbceb = $V090cbceb.'(';
|
||||
|
||||
$V4111477f = 0;
|
||||
foreach ($V15c46c6e as $Vd1148ee8 => $Ve9de89b0) {
|
||||
$V21ffce5b['-q'.$Ve2942a04] = $Vd1148ee8;
|
||||
$V21ffce5b['-q'.$Ve2942a04.'.'."value"] = $Ve9de89b0;
|
||||
$V090cbceb=$V090cbceb.'q'.$Ve2942a04;
|
||||
$Ve2942a04++;
|
||||
$V4111477f++;
|
||||
|
||||
if($V4111477f < $V8ac10dab){
|
||||
$V090cbceb = $V090cbceb.',';
|
||||
}
|
||||
}
|
||||
$V090cbceb=$V090cbceb.")";
|
||||
$V40677621++;
|
||||
if($V40677621 <= $V31c3c8cf){
|
||||
$V4b22ce92 = $this->Vad2bfd5a[$V40677621];
|
||||
if($V4b22ce92->_impl->_omit == true){
|
||||
$V090cbceb = $V090cbceb.';!';
|
||||
}else{
|
||||
$V090cbceb = $V090cbceb.';';
|
||||
}
|
||||
}
|
||||
}
|
||||
$V21ffce5b['-query'] = $V090cbceb;
|
||||
$V21ffce5b['-findquery'] = true;
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
function add($Vffbd028a, $Vd0dff0df)
|
||||
{
|
||||
$this->Vad2bfd5a[$Vffbd028a] = $Vd0dff0df;
|
||||
}
|
||||
function addSortRule($Vd1148ee8, $Vffbd028a, $V70a17ffa = null)
|
||||
{
|
||||
$this->Vd65662c5[$Vffbd028a] = $Vd1148ee8;
|
||||
if ($V70a17ffa !== null) {
|
||||
$this->Va9136a07[$Vffbd028a] = $V70a17ffa;
|
||||
}
|
||||
}
|
||||
function clearSortRules()
|
||||
{
|
||||
$this->Vd65662c5= array();
|
||||
$this->Va9136a07= array();
|
||||
}
|
||||
function setRange($V08b43519 = 0, $V2ffe4e77 = null)
|
||||
{
|
||||
$this->V83f28691= $V08b43519;
|
||||
$this->V85fd701e= $V2ffe4e77;
|
||||
}
|
||||
function getRange()
|
||||
{
|
||||
return array('skip' => $this->V83f28691,
|
||||
'max' => $this->V85fd701e);
|
||||
}
|
||||
|
||||
function setRelatedSetsFilters($Vdba51d08, $V01a8ebbf = null)
|
||||
{
|
||||
$this->V6da136ea= $Vdba51d08;
|
||||
$this->V568aa2ec= $V01a8ebbf;
|
||||
}
|
||||
function getRelatedSetsFilters()
|
||||
{
|
||||
return array('relatedsetsfilter' => $this->V6da136ea,
|
||||
'relatedsetsmax' => $this->V568aa2ec);
|
||||
}
|
||||
function _setRelatedSetsFilters(&$V21ffce5b)
|
||||
{
|
||||
if ($this->V6da136ea) {
|
||||
$V21ffce5b['-relatedsets.filter'] = $this->V6da136ea;
|
||||
}
|
||||
if ($this->V568aa2ec) {
|
||||
$V21ffce5b['-relatedsets.max'] = $this->V568aa2ec;
|
||||
}
|
||||
}
|
||||
function _setSortParams(&$V21ffce5b)
|
||||
{
|
||||
foreach ($this->Vd65662c5 as $Vffbd028a => $Vd1148ee8) {
|
||||
$V21ffce5b['-sortfield.' . $Vffbd028a] = $Vd1148ee8;
|
||||
}
|
||||
foreach ($this->Va9136a07 as $Vffbd028a => $V70a17ffa) {
|
||||
$V21ffce5b['-sortorder.' . $Vffbd028a] = $V70a17ffa;
|
||||
}
|
||||
}
|
||||
function _setRangeParams(&$V21ffce5b)
|
||||
{
|
||||
if ($this->V83f28691) {
|
||||
$V21ffce5b['-skip'] = $this->V83f28691;
|
||||
}
|
||||
if ($this->V85fd701e) {
|
||||
$V21ffce5b['-max'] = $this->V85fd701e;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_Delete_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
function FileMaker_Command_Delete_Implementation($V0ab34ca9, $Vc6140495, $Va6ec9c02)
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
$this->_recordId = $Va6ec9c02;
|
||||
}
|
||||
function &execute()
|
||||
{
|
||||
if (empty($this->_recordId)) {
|
||||
$Vcb5e100e = new FileMaker_Error($this->_fm, 'Delete commands require a record id.');
|
||||
return $Vcb5e100e;
|
||||
}
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-delete'] = true;
|
||||
$V21ffce5b['-recid'] = $this->_recordId;
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_Duplicate_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
function FileMaker_Command_Duplicate_Implementation($V0ab34ca9, $Vc6140495, $Va6ec9c02)
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
$this->_recordId = $Va6ec9c02;
|
||||
}
|
||||
function &execute()
|
||||
{
|
||||
if (empty($this->_recordId)) {
|
||||
$Vcb5e100e = new FileMaker_Error($this->_fm, 'Duplicate commands require a record id.');
|
||||
return $Vcb5e100e;
|
||||
}
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-dup'] = true;
|
||||
$V21ffce5b['-recid'] = $this->_recordId;
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_Edit_Implementation extends FileMaker_Command_Implementation {
|
||||
var $_fields = array ();
|
||||
var $_modificationId = null;
|
||||
var $V6d6e1fd2;
|
||||
function FileMaker_Command_Edit_Implementation($V0ab34ca9, $Vc6140495, $Va6ec9c02, $Va0af1e2b = array ()) {
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
$this->_recordId = $Va6ec9c02;
|
||||
$this->V6d6e1fd2= null;
|
||||
foreach ($Va0af1e2b as $V06e3d36f => $V2063c160) {
|
||||
if (!is_array($V2063c160)) {
|
||||
$V2063c160 = array (
|
||||
$V2063c160
|
||||
);
|
||||
}
|
||||
$this->_fields[$V06e3d36f] = $V2063c160;
|
||||
}
|
||||
}
|
||||
function & execute() {
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
if (empty ($this->_recordId)) {
|
||||
$Vcb5e100e = new FileMaker_Error($this->_fm, 'Edit commands require a record id.');
|
||||
return $Vcb5e100e;
|
||||
}
|
||||
if (!count($this->_fields)) {
|
||||
if ($this->V6d6e1fd2== null) {
|
||||
$Vcb5e100e = new FileMaker_Error($this->_fm, 'There are no changes to make.');
|
||||
return $Vcb5e100e;
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->_fm->getProperty('prevalidate')) {
|
||||
$Vcb5e111f = & $this->_fm->getLayout($this->_layout);
|
||||
$Vb0689411 = new FileMaker_Error_Validation($this->_fm);
|
||||
foreach ($Vcb5e111f->getFields() as $V9f7d0ff7 => $Vc6140945) {
|
||||
if (isset ($this->_fields[$V9f7d0ff7])) {
|
||||
$V6d6e1ff1 = $this->_fields[$V9f7d0ff7];
|
||||
foreach ($V6d6e1ff1 as $V6d6e1ff2) {
|
||||
$Vb0689411 = $Vc6140945->validate($V6d6e1ff2);
|
||||
if (FileMaker :: isError($Vb0689411)) {
|
||||
return $Vb0689411;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$Vc6140495 = & $this->_fm->getLayout($this->_layout);
|
||||
if (FileMaker :: isError($Vc6140495)) {
|
||||
return $Vc6140495;
|
||||
}
|
||||
$V21ffce5b['-edit'] = true;
|
||||
if ($this->V6d6e1fd2== null) {
|
||||
foreach ($this->_fields as $V972bf3f0 => $Vee0525e4) {
|
||||
if (strpos($V972bf3f0, '.') !== false) {
|
||||
list ($Vb068931c, $V11e868ac) = explode('.', $V972bf3f0, 2);
|
||||
$V11e868ac = '.' . $V11e868ac;
|
||||
} else {
|
||||
$Vb068931c = $V972bf3f0;
|
||||
$V06e3d36f = $Vc6140495->getField($V972bf3f0);
|
||||
if (FileMaker :: isError($V06e3d36f)) {
|
||||
return $V06e3d36f;
|
||||
}
|
||||
if ($V06e3d36f->isGlobal()) {
|
||||
$V11e868ac = '.global';
|
||||
} else {
|
||||
$V11e868ac = '';
|
||||
}
|
||||
}
|
||||
foreach ($Vee0525e4 as $V6a992d55 => $V3a6d0284) {
|
||||
$V21ffce5b[$Vb068931c . '(' . ($V6a992d55 +1) . ')' . $V11e868ac] = $V3a6d0284;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($this->V6d6e1fd2!= null) {
|
||||
$V21ffce5b['-delete.related'] = $this->V6d6e1fd2;
|
||||
}
|
||||
$V21ffce5b['-recid'] = $this->_recordId;
|
||||
if ($this->_modificationId) {
|
||||
$V21ffce5b['-modid'] = $this->_modificationId;
|
||||
}
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker :: isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
function setField($V06e3d36f, $V2063c160, $V6d786dc7 = 0) {
|
||||
$this->_fields[$V06e3d36f][$V6d786dc7] = $V2063c160;
|
||||
return $V2063c160;
|
||||
}
|
||||
function setFieldFromTimestamp($V06e3d36f, $Vd7e6d55b, $V6d786dc7 = 0) {
|
||||
$Vc6140495 = & $this->_fm->getLayout($this->_layout);
|
||||
if (FileMaker :: isError($Vc6140495)) {
|
||||
return $Vc6140495;
|
||||
}
|
||||
$V06e3d36f = & $Vc6140495->getField($V06e3d36f);
|
||||
if (FileMaker :: isError($V06e3d36f)) {
|
||||
return $V06e3d36f;
|
||||
}
|
||||
switch ($V06e3d36f->getResult()) {
|
||||
case 'date' :
|
||||
return $this->setField($V972bf3f0, date('m/d/Y', $Vd7e6d55b), $V6d786dc7);
|
||||
case 'time' :
|
||||
return $this->setField($V972bf3f0, date('H:i:s', $Vd7e6d55b), $V6d786dc7);
|
||||
case 'timestamp' :
|
||||
return $this->setField($V972bf3f0, date('m/d/Y H:i:s', $Vd7e6d55b), $V6d786dc7);
|
||||
}
|
||||
return new FileMaker_Error($this->_fm, 'Only time, date, and timestamp fields can be set to the value of a timestamp.');
|
||||
}
|
||||
function setModificationId($Vf048d909) {
|
||||
$this->_modificationId = $Vf048d909;
|
||||
}
|
||||
function _setdeleteRelated($V2063c160) {
|
||||
$this->V6d6e1fd2= $V2063c160;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/FindImpl.php';
|
||||
class FileMaker_Command_FindAll_Implementation extends FileMaker_Command_Find_Implementation
|
||||
{
|
||||
function FileMaker_Command_FindAll_Implementation($V0ab34ca9, $Vc6140495) {
|
||||
FileMaker_Command_Find_Implementation::FileMaker_Command_Find_Implementation($V0ab34ca9, $Vc6140495);
|
||||
}
|
||||
|
||||
function &execute()
|
||||
{
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-findall'] = true;
|
||||
$this->_setSortParams($V21ffce5b);
|
||||
$this->_setRangeParams($V21ffce5b);
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/FindImpl.php';
|
||||
class FileMaker_Command_FindAny_Implementation extends FileMaker_Command_Find_Implementation
|
||||
{
|
||||
function FileMaker_Command_FindAny_Implementation($V0ab34ca9, $Vc6140495) {
|
||||
FileMaker_Command_Find_Implementation::FileMaker_Command_Find_Implementation($V0ab34ca9, $Vc6140495);
|
||||
}
|
||||
|
||||
function &execute()
|
||||
{
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-findany'] = true;
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_Find_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
var $_findCriteria = array();
|
||||
var $Vd65662c5 = array();
|
||||
var $Va9136a07 = array();
|
||||
var $Vf951bdce;
|
||||
var $V83f28691;
|
||||
var $V85fd701e;
|
||||
|
||||
var $V6da136ea;
|
||||
var $V568aa2ec;
|
||||
function FileMaker_Command_Find_Implementation($V0ab34ca9, $Vc6140495)
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
}
|
||||
function &execute()
|
||||
{
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$this->_setSortParams($V21ffce5b);
|
||||
$this->_setRangeParams($V21ffce5b);
|
||||
$this->_setRelatedSetsFilters($V21ffce5b);
|
||||
if (count($this->_findCriteria) || $this->_recordId) {
|
||||
$V21ffce5b['-find'] = true;
|
||||
} else {
|
||||
$V21ffce5b['-findall'] = true;
|
||||
}
|
||||
if ($this->_recordId) {
|
||||
$V21ffce5b['-recid'] = $this->_recordId;
|
||||
}
|
||||
if ($this->Vf951bdce) {
|
||||
$V21ffce5b['-lop'] = $this->Vf951bdce;
|
||||
}
|
||||
foreach ($this->_findCriteria as $Vd1148ee8 => $Ve9de89b0) {
|
||||
$V21ffce5b[$Vd1148ee8] = $Ve9de89b0;
|
||||
}
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
function addFindCriterion($Vd1148ee8, $Ve9de89b0)
|
||||
{
|
||||
$this->_findCriteria[$Vd1148ee8] = $Ve9de89b0;
|
||||
}
|
||||
function clearFindCriteria()
|
||||
{
|
||||
$this->_findCriteria = array();
|
||||
}
|
||||
function addSortRule($Vd1148ee8, $Vffbd028a, $V70a17ffa = null)
|
||||
{
|
||||
$this->Vd65662c5[$Vffbd028a] = $Vd1148ee8;
|
||||
if ($V70a17ffa !== null) {
|
||||
$this->Va9136a07[$Vffbd028a] = $V70a17ffa;
|
||||
}
|
||||
}
|
||||
function clearSortRules()
|
||||
{
|
||||
$this->Vd65662c5= array();
|
||||
$this->Va9136a07= array();
|
||||
}
|
||||
function setLogicalOperator($V4b583376)
|
||||
{
|
||||
switch ($V4b583376) {
|
||||
case FILEMAKER_FIND_AND:
|
||||
case FILEMAKER_FIND_OR:
|
||||
$this->Vf951bdce= $V4b583376;
|
||||
break;
|
||||
}
|
||||
}
|
||||
function setRange($V08b43519 = 0, $V2ffe4e77 = null)
|
||||
{
|
||||
$this->V83f28691= $V08b43519;
|
||||
$this->V85fd701e= $V2ffe4e77;
|
||||
}
|
||||
function getRange()
|
||||
{
|
||||
return array('skip' => $this->V83f28691,
|
||||
'max' => $this->V85fd701e);
|
||||
}
|
||||
function setRelatedSetsFilters($Vdba51d08, $V01a8ebbf = null)
|
||||
{
|
||||
$this->V6da136ea= $Vdba51d08;
|
||||
$this->V568aa2ec= $V01a8ebbf;
|
||||
}
|
||||
function getRelatedSetsFilters()
|
||||
{
|
||||
return array('relatedsetsfilter' => $this->V6da136ea,
|
||||
'relatedsetsmax' => $this->V568aa2ec);
|
||||
}
|
||||
function _setRelatedSetsFilters(&$V21ffce5b)
|
||||
{
|
||||
if ($this->V6da136ea) {
|
||||
$V21ffce5b['-relatedsets.filter'] = $this->V6da136ea;
|
||||
}
|
||||
if ($this->V568aa2ec) {
|
||||
$V21ffce5b['-relatedsets.max'] = $this->V568aa2ec;
|
||||
}
|
||||
}
|
||||
function _setSortParams(&$V21ffce5b)
|
||||
{
|
||||
foreach ($this->Vd65662c5 as $Vffbd028a => $Vd1148ee8) {
|
||||
$V21ffce5b['-sortfield.' . $Vffbd028a] = $Vd1148ee8;
|
||||
}
|
||||
foreach ($this->Va9136a07 as $Vffbd028a => $V70a17ffa) {
|
||||
$V21ffce5b['-sortorder.' . $Vffbd028a] = $V70a17ffa;
|
||||
}
|
||||
}
|
||||
function _setRangeParams(&$V21ffce5b)
|
||||
{
|
||||
if ($this->V83f28691) {
|
||||
$V21ffce5b['-skip'] = $this->V83f28691;
|
||||
}
|
||||
if ($this->V85fd701e) {
|
||||
$V21ffce5b['-max'] = $this->V85fd701e;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_FindRequest_Implementation
|
||||
{
|
||||
var $_findCriteria = array();
|
||||
|
||||
var $_omit;
|
||||
function FileMaker_Command_FindRequest_Implementation()
|
||||
{
|
||||
$this->_omit = false;
|
||||
}
|
||||
|
||||
function addFindCriterion($Vd1148ee8, $Ve9de89b0)
|
||||
{
|
||||
$this->_findCriteria[$Vd1148ee8] = $Ve9de89b0;
|
||||
}
|
||||
function setOmit($V2063c160)
|
||||
{
|
||||
$this->_omit = $V2063c160;
|
||||
}
|
||||
|
||||
function clearFindCriteria()
|
||||
{
|
||||
$this->_findCriteria = array();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
require_once dirname(__FILE__) . '/../CommandImpl.php';
|
||||
class FileMaker_Command_PerformScript_Implementation extends FileMaker_Command_Implementation
|
||||
{
|
||||
function FileMaker_Command_PerformScript_Implementation($V0ab34ca9, $Vc6140495, $V2550889a, $V9b479e5e = null)
|
||||
{
|
||||
FileMaker_Command_Implementation::FileMaker_Command_Implementation($V0ab34ca9, $Vc6140495);
|
||||
$this->_script = $V2550889a;
|
||||
$this->_scriptParams = $V9b479e5e;
|
||||
}
|
||||
function execute()
|
||||
{
|
||||
$V21ffce5b = $this->_getCommandParams();
|
||||
$V21ffce5b['-findany'] = true;
|
||||
$V0f635d0e = $this->_fm->_execute($V21ffce5b);
|
||||
if (FileMaker::isError($V0f635d0e)) {
|
||||
return $V0f635d0e;
|
||||
}
|
||||
return $this->_getResult($V0f635d0e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user