public function attributesAction()
    {
        $sourceId = $this->getSourceId();
        $where    = $this->db->quoteInto('gsu_id_source = ?', $sourceId);

        $batch = $this->loader->getTracker()->refreshTokenAttributes('attributeCheck' . $sourceId, $where);

        $title = sprintf($this->_('Refreshing token attributes for %s source.'),
                    $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId));

        $this->_helper->batchRunner($batch, $title, $this->accesslog);

        $this->html->pInfo($this->_('Refreshes the attributes for a token as stored in the source.'));
        $this->html->pInfo($this->_('Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow.'));
    }
public function attributesAction()
    {
        $sourceId = $this->getSourceId();
        $where    = $this->db->quoteInto('gsu_id_source = ?', $sourceId);

        $batch = $this->loader->getTracker()->refreshTokenAttributes('attributeCheck' . $sourceId, $where);

        $title = sprintf($this->_('Refreshing token attributes for %s source.'),
                    $this->db->fetchOne("SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?", $sourceId));

        $this->_helper->batchRunner($batch, $title, $this->accesslog);

        $this->html->pInfo($this->_('Refreshes the attributes for a token as stored in the source.'));
        $this->html->pInfo($this->_('Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow.'));
    }
public function attributesAction ( ) { $ sourceId = $ this -> getSourceId ( ) ; $ where = $ this -> db -> quoteInto ( 'gsu_id_source = ?' , $ sourceId ) ; $ batch = $ this -> loader -> getTracker ( ) -> refreshTokenAttributes ( 'attributeCheck' . $ sourceId , $ where ) ; $ title = sprintf ( $ this -> _ ( 'Refreshing token attributes for %s source.' ) , $ this -> db -> fetchOne ( "SELECT gso_source_name FROM gems__sources WHERE gso_id_source = ?" , $ sourceId ) ) ; $ this -> _helper -> batchRunner ( $ batch , $ title , $ this -> accesslog ) ; $ this -> html -> pInfo ( $ this -> _ ( 'Refreshes the attributes for a token as stored in the source.' ) ) ; $ this -> html -> pInfo ( $ this -> _ ( 'Run this code when the number of attributes has changed or when you suspect the attributes have been corrupted somehow.' ) ) ; }
Check token attributes for a single source
Check token attributes for a single source