public function getRecordNameWithoutChunkAppendix($recordName)
    {
        if (!$this->isRecordNameAChunk($recordName)) {
            return $recordName;
        }

        $posAppendix = $this->getStartPosOfChunkAppendix($recordName);

        if (false === $posAppendix) {
            return $recordName;
        }

        return substr($recordName, 0, $posAppendix);
    }
public function getRecordNameWithoutChunkAppendix($recordName)
    {
        if (!$this->isRecordNameAChunk($recordName)) {
            return $recordName;
        }

        $posAppendix = $this->getStartPosOfChunkAppendix($recordName);

        if (false === $posAppendix) {
            return $recordName;
        }

        return substr($recordName, 0, $posAppendix);
    }
public function getRecordNameWithoutChunkAppendix ( $ recordName ) { if ( ! $ this -> isRecordNameAChunk ( $ recordName ) ) { return $ recordName ; } $ posAppendix = $ this -> getStartPosOfChunkAppendix ( $ recordName ) ; if ( false === $ posAppendix ) { return $ recordName ; } return substr ( $ recordName , 0 , $ posAppendix ) ; }
When having a record like 'Actions_ActionUrls_chunk_0_99" it will return the raw recordName 'Actions_ActionUrls'.

@param  string $recordName
@return string
When having a record like Actions_ActionUrls_chunk_0_99 it will return the raw recordName Actions_ActionUrls .