ARC2_StoreDeleteQueryHandler::deleteTargetGraphs PHP Method

deleteTargetGraphs() public method

*
public deleteTargetGraphs ( )
    function deleteTargetGraphs()
    {
        $tbl_prefix = $this->store->getTablePrefix();
        $r = 0;
        $con = $this->store->getDBCon();
        foreach ($this->infos['query']['target_graphs'] as $g) {
            if ($g_id = $this->getTermID($g, 'g')) {
                $rs = mysqli_query($con, 'DELETE FROM ' . $tbl_prefix . 'g2t WHERE g = ' . $g_id);
                $r += mysqli_affected_rows($con);
            }
        }
        $this->refs_deleted = $r ? 1 : 0;
        return $r;
    }