Archiver::CONTENTS_NAME_PIECE_RECORD_NAME, 'getContentPieces' => Archiver::CONTENTS_PIECE_NAME_RECORD_NAME, ); return $apiToRecord[$apiMethod]; } public static function getSubtableLabelForApiMethod($apiMethod) { $labelToMethod = array( 'getContentNames' => 'Contents_ContentPiece', 'getContentPieces' => 'Contents_ContentName', ); return $labelToMethod[$apiMethod]; } }