protected function getValidatedPid(DataHandler $tceMain, $table, $uid)
    {
        $pid = $tceMain->getPID($table, $uid);
        if ($pid === false) {
            throw new NoPidException('Pid should not be false');
        }

        $pid = intval($pid);
        return $pid;
    }
protected function getValidatedPid(DataHandler $tceMain, $table, $uid)
    {
        $pid = $tceMain->getPID($table, $uid);
        if ($pid === false) {
            throw new NoPidException('Pid should not be false');
        }

        $pid = intval($pid);
        return $pid;
    }
protected function getValidatedPid ( DataHandler $ tceMain , $ table , $ uid ) { $ pid = $ tceMain -> getPID ( $ table , $ uid ) ; if ( $ pid === false ) { throw new NoPidException ( 'Pid should not be false' ) ; } $ pid = intval ( $ pid ) ; return $ pid ; }
Retrieves the pid of a record and throws an exception when getPid returns false.

@param DataHandler $tceMain
@param string $table
@param integer $uid
@throws NoPidException
@return integer
Retrieves the pid of a record and throws an exception when getPid returns false .