コード例 #1
0
 /**
  * @param $table
  * @param array $uids
  * @param boolean $isVisible
  * @return void
  */
 private function updateEntries($table, array $uids, $isVisible)
 {
     if (empty($uids)) {
         return;
     }
     $statement = $this->sqlFactory->getUpdateStatementForContentElements($table, $uids, $isVisible);
     $GLOBALS['TYPO3_DB']->sql_query($statement);
 }
コード例 #2
0
 /**
  * @test
  */
 public function canCreateUpdateStatementForInVisibleContentElements()
 {
     $expected = 'UPDATE my_table SET hidden = 1 WHERE uid IN (3,4);';
     $actual = $this->sqlFactory->getUpdateStatementForContentElements('my_table', array(3, 4), false);
     $this->assertEquals($expected, $actual);
 }