/**
  * 
  * 
  */
 public function abcrequestAction()
 {
     if ($this->request->isPost()) {
         $folder = new Application_Model_Folder($this->user);
         $folderid = trim($this->request->folderid) ?: 0;
         $clubid = trim($this->request->abcid) ?: 0;
         if ($folderid != 0 && !$clubid) {
             $fcontent = $folder->getSubscriberscustom($folderid);
         }
     }
     if ($clubid && $folderid) {
         $abc = new Application_Model_Abcdata();
         $abc->cleanupFolder($folderid);
         $abc->getURL($clubid);
         $rs = $abc->abcClientData($abc->URL_ALL_DATA);
         $absobj = $abc->setAbcclubObjects($rs);
         if ($abc->abcSubscribers($absobj, $folderid, $this->user->getId())) {
             echo 1;
             exit;
         } else {
             echo 0;
             exit;
         }
     }
     echo count($fcontent);
     exit;
 }
Example #2
0
// Because our models need it this way
// Get the messages model
// Set up our current timestamp
$timestamp = date('Y-m-d H:i:s');
// Log the start of this read
logWrite("####################################");
logWrite("Begin batch send: {$timestamp}");
logWrite("------------------------------------");
// Get the queue and counts
// Log our counts
logWrite("Testing ABC");
//logWrite("")
$abcObj = new Application_Model_Abcdata();
$abcObj->getURL(7278);
//$rs = $abcObj->abcClientData($abcObj->URL_UPDATE_INFO);
$rs = $abcObj->abcClientData($abcObj->URL_ALL_DATA);
$abs = $abcObj->setAbcclubObjects($rs);
//echo 'RS: '.count($rs).' ABCOBJ: '.count($abs);
//$oob = $abs[234];
//
//echo '<pre>';print_r($oob);
//echo $oob->getFirstname();
//echo '<pre>';
//echo $oob->getLastname();
//echo '<pre>';
//echo $oob->getMemberid();
$fid = 8528;
//$abcObj->abcSubscribers($abs,$fid);
//$abcObj->storeAbsdata($abs);
//$rs = $abcObj->getAccountsId();
echo '<pre>';